diff --git a/local/config/src/vitest.js b/local/config/src/vitest.js index 51d4b9c..91291ee 100644 --- a/local/config/src/vitest.js +++ b/local/config/src/vitest.js @@ -11,6 +11,7 @@ module.exports = defineConfig({ include, coverage: { reportsDirectory: './.coverage/unit', + // without this the setup file or the test files show up in the final coverage on the CI exclude: [`**/${setupFileName}`, ...include], }, }, diff --git a/packages/overlayscrollbars-ngx/karma.conf.js b/packages/overlayscrollbars-ngx/karma.conf.js index fe530a0..261b953 100644 --- a/packages/overlayscrollbars-ngx/karma.conf.js +++ b/packages/overlayscrollbars-ngx/karma.conf.js @@ -26,9 +26,9 @@ module.exports = function (config) { suppressAll: true, // removes the duplicated traces }, coverageReporter: { - dir: require('path').join(__dirname, './.coverage'), + dir: require('path').join(__dirname, './.coverage/unit'), subdir: '.', - reporters: [{ type: 'json' }, { type: 'text' }], + reporters: [{ type: 'json' }, { type: 'html' }, { type: 'text' }], }, reporters: ['progress', 'kjhtml'], port: 9876,