summaryrefslogtreecommitdiffstats
path: root/gui-clamp/ui-react/package.json
diff options
context:
space:
mode:
Diffstat (limited to 'gui-clamp/ui-react/package.json')
-rw-r--r--gui-clamp/ui-react/package.json13
1 files changed, 11 insertions, 2 deletions
diff --git a/gui-clamp/ui-react/package.json b/gui-clamp/ui-react/package.json
index ce2b071..c3b63c5 100644
--- a/gui-clamp/ui-react/package.json
+++ b/gui-clamp/ui-react/package.json
@@ -54,7 +54,8 @@
"history": "5.0.0",
"jest": "26.6.0",
"jest-canvas-mock": "2.3.1",
- "jest-fetch-mock": "3.0.3"
+ "jest-fetch-mock": "3.0.3",
+ "jest-sonar-reporter": "2.0.0"
},
"browserslist": [
">0.2%",
@@ -64,10 +65,12 @@
],
"jest": {
"verbose": true,
- "coverageDirectory": "${project.build.directory}/${ui.react.src}/coverage",
+ "collectCoverage": true,
+ "coverageDirectory": "${project.build.directory}/code-coverage",
"collectCoverageFrom": [
"**/*.{js,jsx}"
],
+ "testResultsProcessor": "jest-sonar-reporter",
"rootDir": "${project.build.directory}/${ui.react.src}",
"coverageReporters": [
"lcov"
@@ -83,6 +86,12 @@
"enzyme-to-json/serializer"
]
},
+ "jestSonar": {
+ "reportPath": "../../target/reports",
+ "reportFile": "test-reporter.xml",
+ "indent": 4,
+ "sonar56x": true
+ },
"babel": {
"presets": [
"@babel/preset-env",