Separately, have you tried the community ESLint Jest plugin?
yarn add --dev eslint eslint-plugin-jest-react
Add jest-react
to the plugins section of your ESLint configuration file.
{
plugins: ["jest-react"];
}
We recommend extending from plugin:jest-react/recommended
:
{
"extends": ["plugin:jest-react/recommended"]
}
If you want more fine control over the rules, you may configure them individually per ESLint's Configuring Rules docs:
{
"rules": {
"jest-react/no-mocking-react": "warn"
}
}
We'd love to have you contribute!
Check the issue tracker for issues labeled accepting prs
to find bug fixes and feature requests the community can work on.
If this is your first time working with this code, the good first issue
label indicates good introductory issues.
Please note that this project is released with a Contributor Covenant. By participating in this project you agree to abide by its terms. See CODE_OF_CONDUCT.md.