diff --git a/config/travis/build.sh b/config/travis/build.sh index 7f150219..96e41851 100755 --- a/config/travis/build.sh +++ b/config/travis/build.sh @@ -6,5 +6,5 @@ if [[ -n "$TRAVIS_TAG" ]]; then export REACT_APP_ENV='production'; fi yarn lint:check yarn prettier:check -yarn test +yarn test:coverage yarn build \ No newline at end of file diff --git a/package.json b/package.json index f6d15002..01314f85 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,8 @@ "release": "electron-builder --mac --linux --windows -p always", "start-mainnet": "REACT_APP_NETWORK=mainnet yarn start", "start": "react-app-rewired start", - "test": "NODE_ENV=test && react-app-rewired test --env=jsdom --coverage --watchAll=false", + "test": "NODE_ENV=test && react-app-rewired test --env=jsdom", + "test:coverage": "yarn test --coverage --watchAll=false", "coveralls": "cat ./coverage/lcov.info | coveralls" }, "husky": { @@ -54,10 +55,9 @@ "collectCoverageFrom": [ "src/**/*.{js,jsx,ts,tsx}", "!src/**/*.{.test.*}", - "!/node_modules/", - "!/src/assets/**", - "!/config", - "!/src/test" + "!src/**/test/**/*", + "!src/**/assets/**", + "!src/config/**/*" ] }, "productName": "Safe Multisig",