buble-jest-flow
v1.0.7
Published
Custom jest transformer to remove flow type annotations using buble
Downloads
7
Maintainers
Readme
buble-jest-flow
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',
},
};