Update coverage script

This commit is contained in:
Agustin Pane 2020-07-01 19:20:06 -03:00
parent 47adfde11b
commit 6d67454ee9
2 changed files with 6 additions and 6 deletions

View File

@ -6,5 +6,5 @@ if [[ -n "$TRAVIS_TAG" ]]; then export REACT_APP_ENV='production'; fi
yarn lint:check yarn lint:check
yarn prettier:check yarn prettier:check
yarn test yarn test:coverage
yarn build yarn build

View File

@ -36,7 +36,8 @@
"release": "electron-builder --mac --linux --windows -p always", "release": "electron-builder --mac --linux --windows -p always",
"start-mainnet": "REACT_APP_NETWORK=mainnet yarn start", "start-mainnet": "REACT_APP_NETWORK=mainnet yarn start",
"start": "react-app-rewired 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" "coveralls": "cat ./coverage/lcov.info | coveralls"
}, },
"husky": { "husky": {
@ -54,10 +55,9 @@
"collectCoverageFrom": [ "collectCoverageFrom": [
"src/**/*.{js,jsx,ts,tsx}", "src/**/*.{js,jsx,ts,tsx}",
"!src/**/*.{.test.*}", "!src/**/*.{.test.*}",
"!<rootDir>/node_modules/", "!src/**/test/**/*",
"!<rootDir>/src/assets/**", "!src/**/assets/**",
"!<rootDir>/config", "!src/config/**/*"
"!<rootDir>/src/test"
] ]
}, },
"productName": "Safe Multisig", "productName": "Safe Multisig",