Shuffle some test coverage setting around
This commit is contained in:
parent
e9952a7511
commit
5b15d39871
@ -1,19 +1,13 @@
|
||||
module.exports = {
|
||||
verbose: true,
|
||||
testPathIgnorePatterns: [
|
||||
'<rootDir>/node_modules/',
|
||||
'<rootDir>/public/',
|
||||
'<rootDir>/extensions/',
|
||||
],
|
||||
testPathIgnorePatterns: ['!**/node_modules/**'],
|
||||
testMatch: ['<rootDir>/src/**/*.test.js'],
|
||||
//
|
||||
collectCoverage: false,
|
||||
collectCoverageFrom: [
|
||||
'**/*.{js,jsx}',
|
||||
'<rootDir>/src/**/*.{js,jsx}',
|
||||
'!<rootDir>/src/**/*.test.js',
|
||||
'!**/node_modules/**',
|
||||
'!<rootDir>/public/**',
|
||||
'!<rootDir>/extensions/**',
|
||||
'!<rootDir>/dist/**',
|
||||
],
|
||||
reporters: ['default', 'jest-junit'],
|
||||
//
|
||||
|
||||
13
package.json
13
package.json
@ -15,20 +15,17 @@
|
||||
"npm": ">=5"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "yarn run prep && cross-env PORT=5000 react-scripts start",
|
||||
"dev:debug": "cross-env PORT=5000 react-scripts start",
|
||||
"build": "yarn run prep && node --max-old-space-size=4096 node_modules/rollup/bin/rollup -c",
|
||||
"prepublishOnly": "yarn run build",
|
||||
"lint": "eslint -c .eslintrc --fix src && prettier --single-quote --write src/**/*.{js,jsx,json,css}",
|
||||
"prepare": "yarn run build",
|
||||
"predeploy": "cd example && npm install && yarn run build",
|
||||
"test": "jest",
|
||||
"test:ci": "jest --ci --runInBand --collectCoverage --reporters=default --reporters=jest-junit && codecov",
|
||||
"copy:webworkers": "cpx 'node_modules/cornerstone-wado-image-loader/dist/*.min.js*' public",
|
||||
"staticDeploy": "./generateStaticSite.sh",
|
||||
"predeploy": "cd example && npm install && yarn run build",
|
||||
"preBuild": "yarn run version && yarn run copy:webworkers",
|
||||
"version": "node -p -e \"'export default \\'' + require('./package.json').version + '\\';'\" > src/version.js",
|
||||
"details": "yarn run version",
|
||||
"prep": "yarn run details && yarn run copy:webworkers",
|
||||
"start": "yarn run prep && cross-env PORT=5000 react-scripts start",
|
||||
"start:debug": "cross-env PORT=5000 react-scripts start"
|
||||
"copy:webworkers": "cpx 'node_modules/cornerstone-wado-image-loader/dist/*.min.js*' public"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^15.0.0 || ^16.0.0",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user