"I like my
testutils where I can see 'em" 🕵🏽♀️
(I oftentimes create an alias for the helpers I use for testing)
Let's fix this!
yarn add eslint-import-resolver-jest -D
npm i eslint-import-resolver-jest -D
If you are using the
package.json config option from jest everything should _just work_™.
If you are using a separate config file for jest using the
--config option you have to point this plugin to it, too (in your .eslintrc):
If you want to ensure that this resolver only applies to your test files, you can use ESLint's
overrides configuration option:
It will only resolve the modules in your test files that you specified via
testMatch in your jest config.
Create issues in this repo or get active yourself:
yarn test # npm test works, too