We suggest using yarn for installations.
yarn add eslint-config-jest-enzyme --dev
But npm works too!
$ npm install eslint-config-jest-enzyme --save-dev
Add this extend to your eslint file:
{
"extends": [
"jest-enzyme"
]
}
This configuration only applies to test files that end in *.test.js
.