Jest plugin that replaces Jest's default module resolution with Webpack's resolver using the project's webpack.config.js. Version 0.3.0 is the latest stable release; the package is no longer actively maintained. It supports Jest >=20 and resolves Webpack features like aliases, extensions, modules, mainFields, and plugins. Unlike manual mocking, it allows Jest to mirror Webpack's resolve behavior automatically.
npm install jest-webpack-resolverVerified import paths — ran on the pinned version, not inferred.
Configures Jest to use Webpack resolver with custom webpack config and silent mode.
Upgrade Jest to version 20 or later
Ensure webpack.config.js returns a valid webpack configuration
Migrate to actively maintained alternatives
Merge configs or use a custom resolver
npm install jest-webpack-resolver --save-dev
Place jestWebpackResolver at root level of package.json or jest.config
Ensure webpackConfig points to an existing webpack configuration file