Gathering detailed insights and metrics for eslint-import-resolver-jest
Gathering detailed insights and metrics for eslint-import-resolver-jest
Gathering detailed insights and metrics for eslint-import-resolver-jest
Gathering detailed insights and metrics for eslint-import-resolver-jest
eslint-import-resolver-typescript
This plugin adds `TypeScript` support to `eslint-plugin-import`
eslint-import-resolver-node
Node default behavior import resolution plugin for eslint-plugin-import.
jest-pnp-resolver
plug'n'play resolver for Webpack
eslint-import-resolver-alias
a simple Node behavior import resolution plugin for eslint-plugin-import, supporting module alias.
🃏 Jest import resolution plugin for eslint-plugin-import
npm install eslint-import-resolver-jest
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
31 Stars
77 Commits
17 Forks
6 Watching
193 Branches
13 Contributors
Updated on 19 Mar 2024
Minified
Minified + Gzipped
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-22.3%
31,083
Compared to previous day
Last week
-13.7%
125,402
Compared to previous week
Last month
46.1%
555,737
Compared to previous month
Last year
23.1%
4,649,838
Compared to previous year
1
"I like my testutils
where I can see 'em" 🕵🏽♀️
If you're using jest and you have installed custom name mappings in your config via the moduleNameMapper
config and you're using the wonderful eslint-plugin-import you might get yelled at by eslint:
(I oftentimes create an alias for the helpers I use for testing)
1yarn add eslint-import-resolver-jest -D
or
1npm 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):
1"settings": { 2 "import/resolver": { 3 "jest": { 4 "jestConfigFile": "./jest.conf.json" 5 } 6 } 7}
That's it!
If you want to ensure that this resolver only applies to your test files, you can use ESLint's overrides
configuration option:
1"overrides": [ 2 { 3 "files": ["**/__tests__/**/*.js"], 4 "settings": { 5 "import/resolver": { 6 "jest": { 7 "jestConfigFile": "./jest.conf.json" 8 } 9 } 10 } 11 } 12]
It will only resolve the modules in your test files that you specified via testRegex
or testMatch
in your jest config.
Create issues in this repo or get active yourself:
1yarn test # npm test works, too
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 5/13 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
64 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More