Skip to content

Commit d414d2f

Browse files
committed
chore: test against all versions of recast and react-docgen
1 parent 8cd1410 commit d414d2f

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

.tav.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
recast-0-12:
2+
name: react-docgen
3+
versions: '>= 2.17.0 < 3.0.0 || >= 3.0.0-beta7 <= 3.0.0-beta10'
4+
peerDependencies: recast@0.12.6
5+
commands: npm run test:unit
6+
7+
recast-0-13:
8+
name: react-docgen
9+
versions: '>= 3.0.0-beta10 <= 3.0.0-beta12'
10+
peerDependencies: recast@0.13.0
11+
commands: npm run test:unit

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
"scripts": {
88
"flow": "flow",
99
"lint": "eslint src/",
10-
"prebuild": "npm test",
10+
"prebuild": "npm run test:unit",
1111
"build": "rimraf distribution/ && babel source/ --out-dir distribution/ --ignore **/*.spec.js",
1212
"prepublish": "npm run build",
13-
"pretest": "npm run lint && npm run flow",
14-
"test": "ava"
13+
"pretest:unit": "npm run lint && npm run flow",
14+
"test:unit": "ava",
15+
"test": "npm run test:unit && tav"
1516
},
1617
"ava": {
1718
"files": [
@@ -58,6 +59,7 @@
5859
"eslint": "3.4.0",
5960
"flow-bin": "0.54.0",
6061
"react-docgen": "3.0.0-beta6",
61-
"rimraf": "2.6.1"
62+
"rimraf": "2.6.1",
63+
"test-all-versions": "3.3.2"
6264
}
6365
}

0 commit comments

Comments
 (0)