Open ajbogh opened 6 years ago
This is an area for discussion.
Known facts:
The flow command without Jest works.
╰─$ flow
Launching Flow server for /Users/ajbogh/Projects/import_loop_flow_bug
Spawned flow server (pid=16980)
Logs will go to /private/tmp/flow/zSUserszSajboghzSProjectszSimport_loop_flow_bug.log
Monitor logs will go to /private/tmp/flow/zSUserszSajboghzSProjectszSimport_loop_flow_bug.monitor_log
No errors!
Flow/Jest uses babel-jest:
"jest": {
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"transform": {
"^.+\\.(js)$": "babel-jest",
"^.+\\.(ts|tsx)$": "ts-jest"
},
Babel uses flow preset in .babelrc
:
{
"presets": [
"flow",
"es2015",
"stage-2"
]
}
When running the test Flowtype fails with the following error, however Typescript passes: