From e94ac945bb8315e9e0bcbd510df00eed1056aca2 Mon Sep 17 00:00:00 2001 From: ashim-hq Date: Tue, 21 Apr 2026 09:26:22 +0800 Subject: [PATCH] fix: exclude worktree directories from vitest test discovery .worktrees/ and .claude/ contain git worktrees from other developers which have their own test files. Without exclusion, vitest picks them up and fails due to mismatched React/module resolution. --- vitest.config.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vitest.config.ts b/vitest.config.ts index d07ba580..bd98462b 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -31,6 +31,8 @@ export default defineConfig({ "**/node_modules/**", "**/dist/**", "**/.{idea,git,cache,output,temp}/**", + ".worktrees/**", + ".claude/**", ], // These env vars are injected into process.env BEFORE test files are // imported, ensuring apps/api/src/config.ts picks them up correctly.