Skip to content

Commit 839bedc

Browse files
committed
fix(ci): scope Vitest to tests/unit so it doesn't collect Playwright specs
Vitest discovers any *.test.js / *.spec.js by default and tried to import tests/e2e/marker-load.spec.js, where @playwright/test's test() errors out because it's invoked outside the Playwright runner.
1 parent 1d739bd commit 839bedc

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

vitest.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// vitest.config.js
2+
import { defineConfig } from 'vitest/config';
3+
4+
export default defineConfig({
5+
test: {
6+
include: ['tests/unit/**/*.test.js'],
7+
},
8+
});

0 commit comments

Comments
 (0)