Skip to content

test(worktree): fix macOS path baseline#319

Open
catwithtudou wants to merge 1 commit into
deepcoldy:masterfrom
catwithtudou:scott9/fix-worktree-macos-path-baseline
Open

test(worktree): fix macOS path baseline#319
catwithtudou wants to merge 1 commit into
deepcoldy:masterfrom
catwithtudou:scott9/fix-worktree-macos-path-baseline

Conversation

@catwithtudou

Copy link
Copy Markdown
Contributor

Summary

  • Canonicalize the git-worktree test temp root with realpathSync so macOS /var and /private/var paths compare consistently with git's worktree output.
  • Add a small retry window to the test temp-dir cleanup, which makes real-git worktree cleanup less flaky on macOS after path canonicalization.

Validation

  • CI=true npx --yes pnpm@9.5.0 vitest run --project unit test/git-worktree.test.ts
  • CI=true npx --yes pnpm@9.5.0 build
  • CI=true npx --yes pnpm@9.5.0 test no longer reports test/git-worktree.test.ts failures. The remaining failures are out of scope for this PR: the group/status baseline covered by test(groups): fix group creation unit baseline #318, plus the existing test/sandbox.test.ts opaque-dir case.

@catwithtudou catwithtudou requested a review from deepcoldy as a code owner June 27, 2026 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant