buble-jest-flow

Custom jest transformer to remove flow type annotations using buble

Usage no npm install needed!

<script type="module">
  import bubleJestFlow from 'https://cdn.skypack.dev/buble-jest-flow';
</script>

README

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?quot;: "buble-jest-flow"
    }
  }
}

OR

// jest.config.js

module.exports = {
  transform: {
    '^.+\\.jsx?

: 'buble-jest-flow',
  },
};

License

MIT © Abhisek Pattnaik