jest-enhanced-resolve
v1.0.1
Published
Use Webpack's enhanced-resolve inside Jest
Downloads
1,453
Maintainers
Readme
jest-enhanced-resolve
Use Webpack's enhanced-resolve inside Jest
Install
yarn add jest-enhanced-resolve
Usage
Configure Jest to use your own resolver.js
file:
{
"resolver": "./resolver.js"
}
Configure your resolver.js
file:
module.exports = require("jest-enhanced-resolve")({
mainFields: ["source", "module", "main"],
})
See enhanced-resolve for information on all options.