-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use jsdom environment for tests by default #3962
Conversation
@@ -33,7 +33,7 @@ module.exports = (resolve, rootDir, srcRoots) => { | |||
], | |||
// where to search for files/tests | |||
roots: srcRoots.map(toRelRootDir), | |||
testEnvironment: 'node', | |||
testEnvironment: 'jsdom', |
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.
This can actually be omitted, because that's the Jest's default, but decided to left as is for now.
Let's hold off merging until 2.0 or people will be confused by contradictory docs. |
Cool, changes are rather minimal. Ping me when you need a rebase or something. And have a great weekend! :) |
You too. Thanks! |
Oops, I didn't see this PR and just made the same change! Our patches our slightly different though, see #5074. |
Haha, no worries! I thought it was merged already XD |
Awesome! 🎉 Sorry again. 😅 |
I didn't like
--env=jsdom
being present in test command, so I'm happy to remove it as a part of #3887Resolves #3887