Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 837 Bytes

README.md

File metadata and controls

48 lines (34 loc) · 837 Bytes

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