Skip to content

"TypeError: environment.dispose is not a function" when running tests #4243

Closed
@gaearon

Description

@gaearon
create-react-app myapp
cd myapp
npm install lint-staged
rm -rf node_modules
npm install
npm test

gives an error:

TypeError: environment.dispose is not a function

Related: jestjs/jest#5294 lint-staged/lint-staged#414

Some kind of dependency hell scenario caused by bad resolving somewhere. Need to explore working around on our side in 1.x until we can bump Jest to a version that doesn't have this problem.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions