Update coverage script
This commit is contained in:
parent
47adfde11b
commit
6d67454ee9
|
@ -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
|
10
package.json
10
package.json
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue