From d43de3d95a62bbea4547e7b98463d1e1b4681e1b Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Thu, 13 Aug 2026 09:04:02 -0700 Subject: [PATCH] Keep nested worktrees out of test runs Test runs from the repo root were picking up every git worktree under .claude, running 648 tests across 102 files instead of 322 across 34. That made results misleading rather than just noisy: a failure in an unrelated worktree showed up as a failure here. Ignores the directory too. Only settings.local.json was listed, while rules.md stays tracked. --- .gitignore | 1 + vite.config.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 5beed3a8..1beb88f8 100644 --- a/.gitignore +++ b/.gitignore @@ -58,3 +58,4 @@ flatpak/node-sources.json # Claude Code local settings .claude/settings.local.json +.claude/worktrees/ diff --git a/vite.config.ts b/vite.config.ts index 421e45f6..b0c112b5 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -14,6 +14,7 @@ export default defineConfig({ }, }, test: { - exclude: ["**/node_modules/**", "**/flatpak/**"], + // Nested git worktrees live under .claude, and their tests are not this checkout's + exclude: ["**/node_modules/**", "**/flatpak/**", "**/.claude/**"], }, });