jest-runner-flowtype

0.0.7 • Public • Published

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

Alt text

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

{
  "jest": {
    "runner": "jest-runner-flowtype"
  }
}

Or in jest.config.js

module.exports = {
  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

{
  "scripts": {
    "flow-runner": "yarn jest --config flow-jest.config.js"
  }
}

Now run it with

yarn flow-runner

The following screenshot is a sample output for failed run.

failed output

Readme

Keywords

none

Package Sidebar

Install

npm i jest-runner-flowtype

Weekly Downloads

38

Version

0.0.7

License

MIT

Unpacked Size

497 kB

Total Files

9

Last publish

Collaborators

  • binygal