Jest-Runner-Flowtype
An experimental Flowtype runner for Jest
You can learn more about Jest as a platform and Jest runners in the following video
Usage
install
You need to have jest (version 21 or later) then install jest-runner-flowtype
yarn add --dev jest-runner-flowtype
Configure
Now add jest runner flowtype to jest config
You can do that either in your package.json
Or in jest.config.js
moduleexports = runner: "jest-runner-flowtype";
Run
Now you can run jest and flowtype runner will be called.
yarn jest
Multiple runners
Most of the times it make sense to have multiple configurations as you still want Jest to run your tests
You can have multiple configurations. Just have another config object in other file (Let's say - flow-jest.config.js) and set the following script on your package.json
Now run it with
yarn flow-runner
The following screenshot is a sample output for failed run.