@financial-times/jest-browser-resolver
v1.0.2
Published
Resolver for jest to resolve using the `package.json` "browser" field first and falling back to the default behaviour of Jest.
Downloads
25
Readme
@financial-times/jest-browser-resolver
This package is for jest to resolve using the package.json
"browser" field first and falling back to the default behaviour of Jest.
Usage
install the package
$ npm i -D @financial-times/jest-browser-resolver
add
jest-browser-resolver
as the resolver of jest.If configuring Jest via your package.json, please add them as follows:
{ ... "jest": { ... "resolver": "@financial-times/jest-browser-resolver" } }
If configuring Jest via a jest.config.js file:
{ ... "resolver": "@financial-times/jest-browser-resolver", }