Skip to content

6.1.0 failing on "Cannot find module '@testing-library/jest-dom'" #522

Closed
@andrewbusch7

Description

@andrewbusch7
  • @testing-library/jest-dom version: 6.1.0
  • node version: v18.13.0
  • npm version: 8.19.3

Relevant code or config:

File src/setupTests.js

import "@testing-library/jest-dom";

What you did:

I upgraded from 6.0.1 to 6.1.0. Rollback to 6.0.1 fixes it.

What happened:

npm run tests now returns a failure on every test:

Cannot find module '@testing-library/jest-dom' from 'src/setupTests.js' for every test run

Reproduction:

If the root cause isn't obvious, I can work on a repo with a replicable example.

Problem description:

Fails always on current version.

Suggested solution:

My guess is something in 61d17bd broke things.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions