From 2b89c80240a4fbd291ebf798115461eba46e9fd1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 21 Apr 2026 15:56:00 +0000 Subject: [PATCH] test: realpath both sides of cwdGitRoot assertion for Windows 8.3 short-name compat Agent-Logs-Url: https://github.com/abhigyanpatwari/GitNexus/sessions/b2a1c6a3-e454-4b87-b0e4-69d7c0d9a51b Co-authored-by: magyargergo <11230420+magyargergo@users.noreply.github.com> --- gitnexus/test/unit/sibling-clone-drift.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitnexus/test/unit/sibling-clone-drift.test.ts b/gitnexus/test/unit/sibling-clone-drift.test.ts index 83fe3294e..b924a553b 100644 --- a/gitnexus/test/unit/sibling-clone-drift.test.ts +++ b/gitnexus/test/unit/sibling-clone-drift.test.ts @@ -204,7 +204,7 @@ describe('checkCwdMatch', () => { // symlink and on Windows expands short 8.3 names. Compare // against `fs.realpathSync` so the assertion is portable. expect(m.entry?.path).toBe(path.resolve(indexed.dbPath)); - expect(m.cwdGitRoot).toBe(fs.realpathSync(sibling.dbPath)); + expect(fs.realpathSync(m.cwdGitRoot!)).toBe(fs.realpathSync(sibling.dbPath)); expect(m.hint).toBeTruthy(); } finally { await indexed.cleanup();