fix ngx cvoerage path

This commit is contained in:
Rene Haas
2022-10-21 16:03:49 +02:00
parent 508699be13
commit 8df5849cf4
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -11,6 +11,7 @@ module.exports = defineConfig({
include, include,
coverage: { coverage: {
reportsDirectory: './.coverage/unit', reportsDirectory: './.coverage/unit',
// without this the setup file or the test files show up in the final coverage on the CI
exclude: [`**/${setupFileName}`, ...include], exclude: [`**/${setupFileName}`, ...include],
}, },
}, },
+2 -2
View File
@@ -26,9 +26,9 @@ module.exports = function (config) {
suppressAll: true, // removes the duplicated traces suppressAll: true, // removes the duplicated traces
}, },
coverageReporter: { coverageReporter: {
dir: require('path').join(__dirname, './.coverage'), dir: require('path').join(__dirname, './.coverage/unit'),
subdir: '.', subdir: '.',
reporters: [{ type: 'json' }, { type: 'text' }], reporters: [{ type: 'json' }, { type: 'html' }, { type: 'text' }],
}, },
reporters: ['progress', 'kjhtml'], reporters: ['progress', 'kjhtml'],
port: 9876, port: 9876,