A transformer for jest that removes flow type annotations from JavaScript files.
Add as a transformer in your package.json
(See Jest Docs).
{
"jest": {
"transform": {
"^.+\\.js(?:\\.flow)?$": "jest-flow-transform"
}
}
}
Custom jest transformer to remove flow type annotations
Homepage Repository npm JavaScript Download
npm install jest-flow-transform@1.0.1
A transformer for jest that removes flow type annotations from JavaScript files.
Add as a transformer in your package.json
(See Jest Docs).
{
"jest": {
"transform": {
"^.+\\.js(?:\\.flow)?$": "jest-flow-transform"
}
}
}