I believe the answer here is the answer to your question.
TL;DR;:
add the following to your .eslintrc file:
.eslintrc
"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