fix reports
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,3 +4,4 @@
|
||||
/coverage
|
||||
**/junit.xml
|
||||
.dependencies-cache
|
||||
/reports
|
||||
|
||||
@ -3,4 +3,7 @@ module.exports = {
|
||||
'^.+\\.(js|jsx)$': 'babel-jest',
|
||||
},
|
||||
reporters: ['default', 'jest-junit'],
|
||||
coverageReporters: ['cobertura', 'lcov', 'text'],
|
||||
collectCoverageFrom: ['src/**/*.{js,jsx}', '!src/**/*.test.{js,jsx}', '!src/index.js', '!src/reportWebVitals.js'],
|
||||
coverageDirectory: 'coverage',
|
||||
};
|
||||
|
||||
12
package.json
12
package.json
@ -8,7 +8,17 @@
|
||||
"dev": "webpack serve --mode=development --open=false",
|
||||
"build": "webpack --mode=production",
|
||||
"lint": "eslint -c .eslintrc.json src --fix",
|
||||
"test": "jest --coverage --verbose"
|
||||
"test": "jest --coverage --verbose",
|
||||
"test:ci": "jest --coverage --verbose --ci --reporters=default --reporters=jest-junit"
|
||||
},
|
||||
"jest-junit": {
|
||||
"outputDirectory": "reports",
|
||||
"outputName": "junit.xml",
|
||||
"ancestorSeparator": " › ",
|
||||
"uniqueOutputName": "false",
|
||||
"suiteNameTemplate": "{filepath}",
|
||||
"classNameTemplate": "{classname}",
|
||||
"titleTemplate": "{title}"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
Reference in New Issue
Block a user