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