jest-resolver-enhanced

Resolver for Jest: use Webpack enhanced-resolver by default, with fallback to Jest resolver


Keywords
jest, resolver, conditional-exports, webpack, ESM
Licenses
MIT/Apache-2.0
Install
npm install jest-resolver-enhanced@1.1.0

Documentation

Jest Resolver Enhanced

Allows Jest to handle conditional exports. Uses node and require exports.

Under the hood:

  • use enhanced-resolve from Webpack by default,
  • if enhanced-resolve fails, use vanilla Jest resolver.