https://github.com/abhisekp/buble-jest-flow
Custom jest transformer to remove flow type annotations using buble
https://github.com/abhisekp/buble-jest-flow
buble flow jest transform types
Last synced: 3 months ago
JSON representation
Custom jest transformer to remove flow type annotations using buble
- Host: GitHub
- URL: https://github.com/abhisekp/buble-jest-flow
- Owner: abhisekp
- License: mit
- Created: 2018-06-30T08:38:19.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T11:17:00.000Z (over 3 years ago)
- Last Synced: 2025-10-03T10:41:27.672Z (10 months ago)
- Topics: buble, flow, jest, transform, types
- Language: JavaScript
- Size: 602 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# buble-jest-flow
[](https://travis-ci.org/abhisekp/buble-jest-flow) [](https://www.npmjs.com/package/buble-jest-flow)
Custom jest transformer to remove flow type annotations using buble
# Install
```sh
# yarn add buble-jest-flow
npm install --save-dev buble-jest-flow # npm i -D buble-jest-flow
```
# API
```js
process(src, options);
```
# Usage
```json
// package.json
{
"jest": {
"transform": {
"^.+\\.jsx?$": "buble-jest-flow"
}
}
}
```
OR
```js
// jest.config.js
module.exports = {
transform: {
'^.+\\.jsx?$': 'buble-jest-flow',
},
};
```
# License
[**MIT**](https://abhisekp.mit-license.org/) © [**Abhisek Pattnaik**](https://github.com/abhisekp)