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>
This commit is contained in:
copilot-swe-agent[bot] 2026-04-21 15:56:00 +00:00 committed by GitHub
parent 144f8bb54b
commit 2b89c80240
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();