From 181079fc8686c192c317738994ae0cd6f430c13f Mon Sep 17 00:00:00 2001 From: Kresna <13603341+slaveofcode@users.noreply.github.com> Date: Sat, 29 Aug 2026 18:28:23 +0700 Subject: [PATCH] test: scope vitest to src/ so it ignores Playwright e2e specs CI 'Test' step failed because vitest matched e2e/*.spec.ts (Playwright runner) as empty '0 test' suites. Restrict vitest include to src/**. --- vitest.config.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vitest.config.ts b/vitest.config.ts index 7e4a36f..e8cc820 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -5,6 +5,10 @@ export default defineConfig({ globals: true, environment: 'jsdom', setupFiles: ['./src/test-setup.ts'], + // Vitest owns unit tests under src/; Playwright owns the e2e/ specs. Scoping + // the include here stops vitest from matching e2e/*.spec.ts (which use the + // Playwright runner and would fail as empty "0 test" suites). + include: ['src/**/*.{test,spec}.{ts,tsx}'], }, resolve: { alias: {