Skip to content

Commit 46f8b8c

Browse files
committed
Fix coverage reporting.
1 parent 6fdf304 commit 46f8b8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@
2727
],
2828
"scripts": {
2929
"build": "rimraf lib && babel src -d lib --ignore '**/*spec.js'",
30-
"test": "jest src/spec.js",
30+
"test": "jest src/spec.js --collectCoverageFrom=src/index.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",
36+
"test:hook": "npm i [email protected] [email protected] && jest src/useAsync.spec.js --collectCoverageFrom=src/useAsync.js",
3737
"prepublishOnly": "npm run test:compat && npm run build"
3838
},
3939
"dependencies": {},

0 commit comments

Comments
 (0)