Closed
Description
@testing-library/jest-dom
version: 6.1.0node
version: v18.13.0npm
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.