Skip to content

Custom jest transformer to remove flow type annotations using buble

License

Notifications You must be signed in to change notification settings

abhisekp/buble-jest-flow

Repository files navigation

buble-jest-flow

Build Status npm

Custom jest transformer to remove flow type annotations using buble

Install

# yarn add buble-jest-flow
npm install --save-dev buble-jest-flow # npm i -D buble-jest-flow

API

process(src, options);

Usage

// package.json

{
  "jest": {
    "transform": {
      "^.+\\.jsx?$": "buble-jest-flow"
    }
  }
}

OR

// jest.config.js

module.exports = {
  transform: {
    '^.+\\.jsx?$': 'buble-jest-flow',
  },
};

License

MIT © Abhisek Pattnaik

About

Custom jest transformer to remove flow type annotations using buble

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published