-
-
Notifications
You must be signed in to change notification settings - Fork 27k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Cleanup Jest config #6654
Cleanup Jest config #6654
Conversation
WRT TypeScript, I think you're good (Jest by default finds
Ditch
I'd prefer
|
Thanks a ton @SimenB. Great feedback. I'll incorporate your recommendations shortly. Would you recommend using using https://github.com/theneva/jest-environment-jsdom-thirteen for |
JSDOM 14 has come out, so I'd probably jump straight to that (not sure if anyone's released a jest environment for it yet, though). Good call 🙂 |
Working on it 😉 https://github.com/ianschmitz/jest-environment-jsdom-fourteen |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might wanna update to jest 24.6, it has a few perf improvements
General cleanup after the Jest 24 PR.
This also includes
jsdom@14
via https://www.npmjs.com/package/jest-environment-jsdom-fourteen. Since we have a node >= 8.10 requirement, we are able to use the latest version ofjsdom
which includes additional implementations of browser APIs such asMutationObserver
(which we had an issue filed for over at #6617)./cc @SimenB. Is there more you recommend we do to cleanup our Jest config for TypeScript?