diff --git a/package.json b/package.json index 2ee52e3..19514f8 100644 --- a/package.json +++ b/package.json @@ -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",