Skip to content

Using jsdom in test environment #25

@anu-rock

Description

@anu-rock

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions