Flow + Babel + TestCheck == QuickCheck in JavaScript
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
demo
src
.eslintignore
.gitignore
.npmignore
Gen.js
Gen.js.flow
LICENSE
README.md
api.js
package.json
yarn.lock

README.md

Flow to gen

Transforms Flow annotations into TestCheck generators for randomized testing

Motivation

Read this blog post

Demo?

DEMO!

Installing

yarn add babel-plugin-transform-flow-to-gen

and add it to your .babelrc

{
  "presets": ["es-2015"],
  "plugins": ["syntax-flow"],
  "env": {
    "development": {
      "plugins": ["strip-flow-types"]
    },
    "test": {
      "plugins": ["flow-to-gen", "strip-flow-types"]
    }
  }
}

License

MIT