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), }