From ec8bcf8e5f93f960d5f63d9064a4e7216167b25b Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Wed, 4 Dec 2024 14:22:23 +0100 Subject: [PATCH] add exclude list to coverage config --- code/addons/test/src/node/vitest-manager.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/code/addons/test/src/node/vitest-manager.ts b/code/addons/test/src/node/vitest-manager.ts index 59aba03e7c71..0d07368a7d6d 100644 --- a/code/addons/test/src/node/vitest-manager.ts +++ b/code/addons/test/src/node/vitest-manager.ts @@ -55,6 +55,7 @@ export class VitestManager { clean: false, cleanOnRerun: !watchMode, reportOnFailure: true, + exclude: [...(this.vitest?.config?.coverage?.exclude || []), '**/*.stories.*'], reporter: [['html', {}], storybookCoverageReporter], reportsDirectory: resolvePathInStorybookCache(COVERAGE_DIRECTORY), }