@financial-times/jest-bower-resolver
v1.0.2
Published
Resolver for jest to resolve bower components correctly by reading the bower.json file
Downloads
2
Maintainers
Keywords
Readme
jest-bower-resolver
This package is for jest to resolve bower components correctly by reading the bower.json file.
Usage
install the package
$ npm i -D jest-bower-resolver
add
jest-bower-resolver
as the resolver of jest, andtransformIgnorePattern
so that the package missingmain
field can be transpiled correctly when running jest.In your package.json, please add them as follows:
{ ... "jest": { ... "resolver": "jest-bower-resolver" } }