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

Using jsdom in test environment #25

Open
anu-rock opened this issue Jun 3, 2020 · 0 comments
Open

Using jsdom in test environment #25

anu-rock opened this issue Jun 3, 2020 · 0 comments

Comments

@anu-rock
Copy link

anu-rock commented Jun 3, 2020

My test script in package.json looks like this:

"test": "react-scripts test"

It works fine and Jest takes over. But if I supply "env" argument to the script, it stops working:

"test": "react-scripts test --env=jsdom"

Output:

yarn workspace v1.22.4
yarn run v1.22.4
$ react-scripts test --env=jsdom
✨  Done in 0.14s.
✨  Done in 0.41s.

Jest never starts and no tests are executed.

cc @F1LT3R

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant