Skip to content

Commit 2bc507c

Browse files
committed
fix(test): correct e2e test exclusion pattern
Fix the exclusion pattern in vitest.config.mts to properly exclude e2e tests from regular test runs. The pattern was using a hyphen (*-e2e) but the actual test files use a dot (*.e2e), causing e2e tests to run in both the regular test workflow and the dedicated e2e workflow. Changes: - Update exclusion pattern from '**/*-e2e.test.mts' to '**/*.e2e.test.mts' - Now matches the actual e2e test file naming convention - Matches the include pattern in vitest.e2e.config.mts Result: - Regular test runs: 272 test files (no e2e tests) - E2E test runs: 2 e2e test files (dedicated workflow) - No duplication between workflows
1 parent 9e4a35b commit 2bc507c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cli/vitest.config.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default defineConfig({
3232
'**/.{idea,git,cache,output,temp}/**',
3333
'**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,eslint,prettier}.config.*',
3434
// Exclude E2E tests from regular test runs.
35-
'**/*-e2e.test.mts',
35+
'**/*.e2e.test.mts',
3636
],
3737
reporters: ['default'],
3838
setupFiles: ['./test/setup.mts'],

0 commit comments

Comments
 (0)