@financial-times/jest-browser-resolver

1.0.2 • Public • Published

@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

  1. install the package

    $ npm i -D @financial-times/jest-browser-resolver
    
  2. 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",
    }

/@financial-times/jest-browser-resolver/

    Package Sidebar

    Install

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

    Weekly Downloads

    5

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    9.52 kB

    Total Files

    16

    Last publish

    Collaborators

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