create-react-app icon indicating copy to clipboard operation
create-react-app copied to clipboard

Using jsdom in test environment

Open anu-rock opened this issue 5 years ago • 0 comments

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

anu-rock avatar Jun 03 '20 08:06 anu-rock