Using jest in my react app, describe is not defined Using jest in my react app, describe is not defined reactjs reactjs

Using jest in my react app, describe is not defined


I believe the answer here is the answer to your question.

TL;DR;:

add the following to your .eslintrc file:

"env": {    "jest": true}


Are your test files under a the "test" folder? make sure jest is install properly and listed on your package.json and under scripts have:

"test": "jest --coverage",

you can run the script with npm test