Closed
Description
@testing-library/jest-dom
version: 4.0.0node
version: 12.8.0npm
(oryarn
) version: 6.10.2
Relevant code or config:
Jest config
module.exports = {
snapshotSerializers: ['jest-emotion'],
setupFilesAfterEnv: ['./config/jest.js']
};
jest.js file
require('@testing-library/jest-dom/extend-expect');
What you did:
run the npm test
What happened:
Getting error expect is not defined ...
Determining test suites to run...
● Test suite failed to run
ReferenceError: expect is not defined
at Object.<anonymous> (node_modules/@testing-library/jest-dom/dist/extend-expect.js:7:1)
at Object.newLoader [as .js] (node_modules/pirates/lib/index.js:104:7)
at Object.<anonymous> (node_modules/@testing-library/jest-dom/extend-expect.js:2:1)
Reproduction:
https://github.com/tomitrescak/react-boilerplate/tree/Demo
Problem description:
I cannot run my tests
Suggested solution:
Metadata
Metadata
Assignees
Labels
No labels