Skip to content

Commit

Permalink
Call out flow support in the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed May 30, 2019
1 parent 0ce8811 commit e380973
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/index.md
Expand Up @@ -137,9 +137,8 @@ probably enjoy this test library.

Babel and Webpack are lovely and fine. But if your code doesn't require
compilation, then I think your tests shouldn't either. Tap is extremely
[promise-aware](/promises/). JSX, TypeScript, and ES-Modules are built-in
when tests are run by the tap CLI. (ES-Module support can be disabled by
`--no-esm`, which is necessary in some very rare edge cases.)
[promise-aware](/promises/). JSX, TypeScript, Flow, and ES-Modules are
[built-in](/using-with/) when tests are run by the tap CLI.

11. **Tests should run as fast as possible, given all the prior
considerations.**
Expand Down
6 changes: 6 additions & 0 deletions docs/using-with/index.md
Expand Up @@ -45,3 +45,9 @@ tap --no-jsx --node-arg=--require=my-jsx-preloader
This is useful in some cases where you might have a mix of JavaScript and
JSX in your tests and modules, and want to ensure that the correct JSX
compiler is used.

# Using tap with Flow

Pass the `--flow` argument on the command line, or set `flow: true` in
`.taprc`, or `{ "tap": { "flow": true } }` in `package.json`, and tap will
automatically remove flow annotations from tests and code.

0 comments on commit e380973

Please sign in to comment.