JavaScript Standard Style does not recognize jest
I was able to find a solution.
In package.json
"standard": {
"env": [ "jest" ]
}
Or in the test case:
/* eslint-env mocha */
In your .eslintrc.js
file, include the following setting and you'll be good to go.
"env": {
"node": true,
"jest": true
}
If you are using a .eslintrc
or a .eslintrc.json
file, please use appropriate syntax.