[Routine - QP] test: ignore local Claude worktrees in Jest#45
Draft
winterdrive wants to merge 1 commit into
Draft
[Routine - QP] test: ignore local Claude worktrees in Jest#45winterdrive wants to merge 1 commit into
winterdrive wants to merge 1 commit into
Conversation
This was referenced Jul 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
變更摘要
.claude/**路徑,避免 local worktree 裡的src/test/**/*.test.ts被npm test一起掃進來。.claude加到modulePathIgnorePatterns,避免 module crawler 解析殘留 worktree 的 mock/module。背景
本機曾殘留多個
.claude/worktrees/*,其中包含src/test/unit/*.test.ts。目前jest.config.js的testMatch是**/src/test/**/*.test.ts,因此 open 或 stale worktree 會污染npm test的測試集合。已處理的本地清理
.claude/worktrees/*。C:/tmp/quickprompt-pr20worktree。.claude/worktrees/admiring-yonath-272b3f。驗證
npx jest --listTests --runInBand | Select-String -Pattern "\.claude\\worktrees|\.claude/worktrees" | Measure-Object->Count: 0npm test-> 7 suites / 107 tests passednpx tsc -p ./git diff --check備註
release-ready。