Shuffle some test coverage setting around
This commit is contained in:
parent
e9952a7511
commit
5b15d39871
@ -1,19 +1,13 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
verbose: true,
|
verbose: true,
|
||||||
testPathIgnorePatterns: [
|
testPathIgnorePatterns: ['!**/node_modules/**'],
|
||||||
'<rootDir>/node_modules/',
|
|
||||||
'<rootDir>/public/',
|
|
||||||
'<rootDir>/extensions/',
|
|
||||||
],
|
|
||||||
testMatch: ['<rootDir>/src/**/*.test.js'],
|
testMatch: ['<rootDir>/src/**/*.test.js'],
|
||||||
//
|
//
|
||||||
collectCoverage: false,
|
collectCoverage: false,
|
||||||
collectCoverageFrom: [
|
collectCoverageFrom: [
|
||||||
'**/*.{js,jsx}',
|
'<rootDir>/src/**/*.{js,jsx}',
|
||||||
|
'!<rootDir>/src/**/*.test.js',
|
||||||
'!**/node_modules/**',
|
'!**/node_modules/**',
|
||||||
'!<rootDir>/public/**',
|
|
||||||
'!<rootDir>/extensions/**',
|
|
||||||
'!<rootDir>/dist/**',
|
|
||||||
],
|
],
|
||||||
reporters: ['default', 'jest-junit'],
|
reporters: ['default', 'jest-junit'],
|
||||||
//
|
//
|
||||||
|
|||||||
13
package.json
13
package.json
@ -15,20 +15,17 @@
|
|||||||
"npm": ">=5"
|
"npm": ">=5"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"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",
|
"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}",
|
"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": "jest",
|
||||||
"test:ci": "jest --ci --runInBand --collectCoverage --reporters=default --reporters=jest-junit && codecov",
|
"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",
|
"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",
|
"version": "node -p -e \"'export default \\'' + require('./package.json').version + '\\';'\" > src/version.js",
|
||||||
"details": "yarn run version",
|
"copy:webworkers": "cpx 'node_modules/cornerstone-wado-image-loader/dist/*.min.js*' public"
|
||||||
"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"
|
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"react": "^15.0.0 || ^16.0.0",
|
"react": "^15.0.0 || ^16.0.0",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user