@financial-times/jest-bower-resolver

1.0.2 • Public • Published

jest-bower-resolver

This package is for jest to resolve bower components correctly by reading the bower.json file.

Usage

  1. install the package

    $ npm i -D jest-bower-resolver
    
  2. add jest-bower-resolver as the resolver of jest, and transformIgnorePattern so that the package missing main field can be transpiled correctly when running jest.

    In your package.json, please add them as follows:

    {
      ...
      "jest": {
        ...
        "resolver": "jest-bower-resolver"
      }
    }

Readme

Keywords

none

Package Sidebar

Install

npm i @financial-times/jest-bower-resolver

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

2.94 kB

Total Files

3

Last publish

Collaborators

  • robertboulton
  • seraph2000
  • hamza.samih
  • notlee
  • emmalewis
  • aendra
  • the-ft
  • rowanmanning
  • chee
  • alexwilson