Skip to content

Commit c633cf0

Browse files
committedApr 22, 2019
Remove Flow type definitions
Closes #2097.
1 parent 3a4afc6 commit c633cf0

10 files changed

+5
-918
lines changed
 

‎docs/recipes/flow.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
Translations: [Français](https://github.com/avajs/ava-docs/blob/master/fr_FR/docs/recipes/flow.md)
44

5-
AVA comes bundled with a Flow definition file. This allows developers to leverage Flow for writing tests.
5+
Until [1.4.1](https://github.com/avajs/ava/releases/tag/v1.4.1) AVA came bundled with a Flow definition file. This allows developers to leverage Flow for writing tests.
6+
7+
**We need some help publishing the type definitions outside of AVA. Please join us in https://github.com/avajs/flow-typed/issues/1 if you'd like to help out.**
68

79
This guide assumes you've already set up Flow for your project. Note that AVA's definition as been tested with version 0.95.1.
810

‎index.js.flow

-788
This file was deleted.

‎package-lock.json

-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+2-6
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,13 @@
1111
},
1212
"scripts": {
1313
"lint": "xo",
14-
"test:flow": "flow check test/flow-types",
1514
"test:tap": "tap --no-esm --no-cov --reporter=classic --timeout=300 --jobs=2 test/*.js test/reporters/*.js test/integration/*.js",
1615
"test:typescript": "tsc --noEmit -p test/ts-types",
17-
"test": "npm run lint && npm run test:flow && npm run test:typescript && nyc npm run test:tap"
16+
"test": "npm run lint && npm run test:typescript && nyc npm run test:tap"
1817
},
1918
"files": [
2019
"lib",
2120
"*.js",
22-
"*.js.flow",
2321
"index.d.ts"
2422
],
2523
"keywords": [
@@ -56,8 +54,7 @@
5654
"unit",
5755
"snapshot",
5856
"expect",
59-
"typescript",
60-
"flow"
57+
"typescript"
6158
],
6259
"dependencies": {
6360
"@ava/babel-preset-stage-4": "^2.0.0",
@@ -147,7 +144,6 @@
147144
"codecov": "^3.2.0",
148145
"delay": "^4.1.0",
149146
"execa": "^1.0.0",
150-
"flow-bin": "^0.95.1",
151147
"get-stream": "^4.1.0",
152148
"git-branch": "^2.0.1",
153149
"has-ansi": "^3.0.0",

‎test/flow-types/.flowconfig

-6
This file was deleted.

‎test/flow-types/log.js

-7
This file was deleted.

‎test/flow-types/regression-1114.js

-45
This file was deleted.

‎test/flow-types/regression-1148.js.flow

-16
This file was deleted.

‎test/flow-types/regression-1500.js

-16
This file was deleted.

‎test/flow-types/throws.js

-27
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.