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.
This commit is contained in:
Gregory Schier
2026-08-13 09:04:02 -07:00
parent bc0494fe0e
commit d43de3d95a
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -58,3 +58,4 @@ flatpak/node-sources.json
# Claude Code local settings
.claude/settings.local.json
.claude/worktrees/
+2 -1
View File
@@ -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/**"],
},
});