JS Coverage Report directory
Moved the generated Jest Coverage report from policy-gui/gui-pdp-monitoring/src/webapp/coverage to policy-gui/target/code-coverage in order for SonarCloud to display the JS Code Coverage results.
Issue-ID: POLICY-2610
Change-Id: I1d86203afa45ad1b0a51d729fec4326607585988
Signed-off-by: waynedunican <wayne.dunican@est.tech>
diff --git a/gui-pdp-monitoring/src/webapp/package.json b/gui-pdp-monitoring/src/webapp/package.json
index b010413..793d6ba 100644
--- a/gui-pdp-monitoring/src/webapp/package.json
+++ b/gui-pdp-monitoring/src/webapp/package.json
@@ -26,13 +26,14 @@
},
"jest": {
"collectCoverage": true,
+ "coverageDirectory": "../../../target/code-coverage",
"transform": {
"^.+\\.[t|j]sx?$": "babel-jest"
},
"testResultsProcessor": "jest-sonar-reporter"
},
"jestSonar": {
- "reportPath": "reports",
+ "reportPath": "../../../target/reports",
"reportFile": "test-reporter.xml",
"indent": 4,
"sonar56x": true