Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

thymikee
Copy link

@thymikee thymikee commented Feb 2, 2018

I didn't like --env=jsdom being present in test command, so I'm happy to remove it as a part of #3887

Resolves #3887

@@ -33,7 +33,7 @@ module.exports = (resolve, rootDir, srcRoots) => {
],
// where to search for files/tests
roots: srcRoots.map(toRelRootDir),
testEnvironment: 'node',
testEnvironment: 'jsdom',
Copy link
Author

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.

@gaearon gaearon added this to the 2.0.0 milestone Feb 2, 2018
@gaearon
Copy link
Contributor

gaearon commented Feb 2, 2018

Let's hold off merging until 2.0 or people will be confused by contradictory docs.
Thanks!

@thymikee
Copy link
Author

thymikee commented Feb 2, 2018

Cool, changes are rather minimal. Ping me when you need a rebase or something. And have a great weekend! :)

@gaearon
Copy link
Contributor

gaearon commented Feb 2, 2018

You too. Thanks!

@Timer
Copy link
Contributor

Timer commented Sep 24, 2018

Oops, I didn't see this PR and just made the same change! Our patches our slightly different though, see #5074.

@Timer Timer closed this Sep 24, 2018
@thymikee
Copy link
Author

Haha, no worries! I thought it was merged already XD

@thymikee thymikee deleted the feat/default-jsdom branch September 24, 2018 15:43
@Timer
Copy link
Contributor

Timer commented Sep 24, 2018

Awesome! 🎉 Sorry again. 😅

@lock lock bot locked and limited conversation to collaborators Jan 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants