Repository navigation
test(git): split worktree cases out of the Git binary compatibility test - #29357
Conversation
Pure move to bring the file under the max-lines limit; same cases in the same order.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to
|
# Conflicts: # src/shared/git-binary-compatibility.test.ts
ELI5
The Git compatibility test file grew past the lint line limit (942 > 820), which fails Lint on main and blocks every PR. This moves its worktree tests into their own file. Pure move: same tests, same assertions, same order.
What Changed
The six worktree cases (worktree-list/rev-parse boundaries, branch-delete refusal, checkout progress records, locked prepared removal, prepared creation/finalization, retarget drift) move verbatim into
src/shared/git-worktree-binary-compatibility.test-cases.ts, registered at the same spot inside the shareddescribe, following the existinggit-resolution-…/git-repository-registration-….test-cases.tspattern. No user-facing change.Why
The cases share one stateful repository and run in order, so a separate test file with its own setup would change what each case sees. Registering from the same describe keeps the exact repository, order and CI path (
pr.yml's real-Git lane still runssrc/shared/git-binary-compatibility.test.ts, andsrc/shared/git-already covers the new file in change-scope detection).Linked Issue
N/A (maintainer, main lint fix)
Visual Proof
N/A, test-only move.
Testing
--maxWorkers=1) before and after: same 32 tests, identical names and order, all pass.pnpm tc:node,pnpm run check:code-quality:changedpass.Agent skill upstream boundary
Checklist