Skip to content

Commit e3dadc9

Browse files
committed
Make sure the right React version is installed to test useAsync with.
1 parent 8cf78ed commit e3dadc9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ node_js:
44
cache:
55
directories:
66
- node_modules
7-
script: npm run test:compat
7+
script: npm run test:compat && npm run test:hook
88
after_success:
99
- bash <(curl -s https://codecov.io/bash) -e TRAVIS_NODE_VERSION

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,13 @@
2727
],
2828
"scripts": {
2929
"build": "rimraf lib && babel src -d lib --ignore '**/*spec.js'",
30-
"test": "jest src",
30+
"test": "jest src/spec.js",
3131
"test:watch": "npm run test -- --watch",
3232
"test:compat": "npm run test:backwards && npm run test:forwards && npm run test:latest",
3333
"test:backwards": "npm i [email protected] [email protected] && npm test",
3434
"test:forwards": "npm i react@next react-dom@next && npm test",
3535
"test:latest": "npm i react@latest react-dom@latest && npm test",
36+
"test:hook": "npm i [email protected] [email protected] && jest src/useAsync.spec.js",
3637
"prepublishOnly": "npm run test:compat && npm run build"
3738
},
3839
"dependencies": {},

0 commit comments

Comments
 (0)