
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
jest-webpack-resolver
Advanced tools
It is a jest plugin for enchanging jest resolving behaviour to webpack resolver through the webpack.config.js
It is a jest plugin for enchanging jest resolving behaviour to webpack resolver through any webpack config.
webpack 2 provides some custom resolving opinions for enchanging resolving behaviours like directory-named-webpack-plugin and you can't match this kind of resolves with jest's default resolver and this plugins completely changing resolving rules.
With webpack resolving you don't have to worry about these resolving options:
resolve.alias
resolve.descriptionFiles
resolve.extensions
resolve.mainFields
resolve.mainFiles
resolve.modules
resolve.plugins
Jest resolver option supported for jest >=20 versions.
install with yarn
yarn add jest-webpack-resolver -D
or install with npm
npm install jest-webpack-resolver -D
add to your jest configuration
{
"resolver": "jest-webpack-resolver"
}
By default plugin tries to detect webpack.config.js. You can configure it from package.json or jest.config.js (or any other jest config file)
add jestWebpackResolver to your package.json file at root level:
{
"name": "",
"version": "",
"jestWebpackResolver": {
"webpackConfig": "./path/to/webpack.config.js"
}
}
or at your jest.config.js or jest.config.json file
{
// ...
jestWebpackResolver: {
webpackConfig: './path/to/webpack.config.js'
}
}
to stop the 'Webpack Resolver using: ./...' message use the silent option
{
"jestWebpackResolver": {
"silent": true,
"webpackConfig": "./path/to/webpack.config.js"
}
}
FAQs
It is a jest plugin for enchanging jest resolving behaviour to webpack resolver through the webpack.config.js
The npm package jest-webpack-resolver receives a total of 7,091 weekly downloads. As such, jest-webpack-resolver popularity was classified as popular.
We found that jest-webpack-resolver demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.