An ESLint resolver for eslint-plugin-import that resolves imports according to Jest's moduleNameMapper configuration. Version 3.0.2 is current stable (as of early 2025). Release cadence is irregular. It reads Jest config from package.json or a specified config file, enabling ESLint to understand aliased imports used in test files. Alternative to manual resolution override; integrates directly with eslint-plugin-import.
npm install eslint-import-resolver-jestVerified import paths — ran on the pinned version, not inferred.
Configures ESLint to resolve imports using Jest's moduleNameMapper by pointing to a separate Jest config file.
Upgrade to v3.0.0 or later.
Explicitly set 'jestConfigFile' to your Jest config file path.
Ensure Jest config includes testRegex or testMatch.
Update .eslintrc to include 'jestConfigFile' if you were relying on auto-detection from v1.
Install eslint-import-resolver-jest and configure in .eslintrc settings as shown in quickstart.
Run: npm install eslint-import-resolver-jest --save-dev