DEV Community

Discussion on: Setting up Jest + React-Testing-Library

Collapse
 
skube profile image
skube • Edited

I think you have it installed incorrectly, my package.json looks like:

 "devDependencies": 
    "@testing-library/jest-dom": "^4.1.0",
    "@testing-library/react": "^9.1.4",
...

Did you add jest-dom with:

yarn add -D @testing-library/jest-dom
Thread Thread
 
rodolphonetto profile image
Rodolpho Netto • Edited

Yes, I dont know why it was installed like that... I've followed the docs, but now it is working fine, thank you :)