From 5a5f611c2fa1c2fd502914c5430ac765e6701afe Mon Sep 17 00:00:00 2001 From: Tyler Date: Sat, 20 Jun 2026 00:04:44 -0600 Subject: [PATCH] chore(frontend): exclude .worktrees from vitest discovery --- vitest.config.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vitest.config.ts b/vitest.config.ts index ede760b..dbed99e 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -17,5 +17,13 @@ export default defineConfig({ env: { VITE_API_BASE_URL: "http://test.local", }, + // Skip sibling worktrees + their node_modules so each worktree only runs + // its own tests. Without this, vitest walks up the tree and re-runs the + // main checkout's tests from inside the worktree, inflating the count. + exclude: [ + "**/node_modules/**", + "**/dist/**", + ".worktrees/**", + ], }, });