Skip to content

Commit

Permalink
Changed jest config to ignore few files like index, typings
Browse files Browse the repository at this point in the history
  • Loading branch information
ummahusla committed Oct 24, 2019
1 parent a26757c commit c05ac3b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,20 @@
],
"scripts": {
"test": "react-scripts-ts test --env=jsdom",
"coverage": "react-scripts-ts test --env=jsdom --coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
"coverage": "CI=true react-scripts-ts test --env=jsdom --coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
"build": "rollup -c",
"start": "rollup -c -w",
"prepare": "yarn run build",
"predeploy": "cd example && yarn install && yarn run build",
"deploy": "npm publish"
},
"jest": {
"collectCoverageFrom": [
"src/**/*.{tsx}",
"!/node_modules/",
"!src/index.tsx"
]
},
"peerDependencies": {
"prop-types": "^15.5.4",
"react": "^15.0.0 || ^16.0.0",
Expand Down

0 comments on commit c05ac3b

Please sign in to comment.