File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 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 react@16.3.1 react-dom@16.3.1 && 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 react@16.7.0-alpha.0 react-dom@16.7.0-alpha.0 && jest src/useAsync.spec.js" ,
36+ "test:hook" : " npm i react@16.7.0-alpha.0 react-dom@16.7.0-alpha.0 && jest src/useAsync.spec.js --collectCoverageFrom=src/useAsync.js " ,
3737 "prepublishOnly" : " npm run test:compat && npm run build"
3838 },
3939 "dependencies" : {},
You can’t perform that action at this time.
0 commit comments