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.
This commit is contained in:
ashim-hq
2026-04-21 09:26:22 +08:00
parent a682380f6f
commit e94ac945bb
+2
View File
@@ -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.