From 8df5849cf41d5fcb29d21224c049813ebd2fb5fa Mon Sep 17 00:00:00 2001 From: Rene Haas Date: Fri, 21 Oct 2022 16:03:49 +0200 Subject: [PATCH] fix ngx cvoerage path --- local/config/src/vitest.js | 1 + packages/overlayscrollbars-ngx/karma.conf.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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,