Time and time I would like to use Jest as our testing framework, only to realize we can't use it as it does not run tests in actual browsers: https://jestjs.io/docs/en/tutorial-jquery … We can't not run our tests in actual browsers, due to the subtle differences between JSDom and the browser.
-
-
Note that I have nothing against JSDom and I am not claiming it is lacking features. However, we would like to run our tests in the environment the actual production code runs in. By only running in JSDom, we would miss subtle differences between different browser implementations
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
-
-
Hard to explain over a tweet, but you can easily create a Jest Environment object wrapping a headless browser. If you want me to show you some example or further explanation feel free to send a DM
happy to help! -
Are there any public examples/plugins we could use? I would rather not maintain a custom integration. We had that before and the maintenance burden became to high. That's why we are moving to a standard solution like Karma.
- Još 2 druga odgovora
Novi razgovor -
-
-
You can write jest tests to run against puppeteer You'll need to bootstrap/teardown the headless browser but that should work
-
Puppeteer instructs the browser in an end-to-end scenario. We would like to write small unit tests in small JavaScript snippets. (We are planning on using Puppeteer for end-to-end testing as well, but as an augmentation)
- Još 2 druga odgovora
Novi razgovor -
-
-
I smell a new test framework coming. Jarma. Kest. Take your pick.
-
Write it in Python so it's PJarma
- Još 1 odgovor
Novi razgovor -
-
-
I would love to get this working because Jest is the best.
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.