From 00ecdf99bd703b67215f3644ac691a95bd064559 Mon Sep 17 00:00:00 2001 From: hannesrudolph Date: Wed, 2 Jul 2025 16:02:02 -0600 Subject: [PATCH] fix: use path.resolve for Windows compatibility in get-relative-path test --- .../code-index/shared/__tests__/get-relative-path.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/code-index/shared/__tests__/get-relative-path.spec.ts b/src/services/code-index/shared/__tests__/get-relative-path.spec.ts index 2b1cfe27e9..40b681485b 100644 --- a/src/services/code-index/shared/__tests__/get-relative-path.spec.ts +++ b/src/services/code-index/shared/__tests__/get-relative-path.spec.ts @@ -57,7 +57,8 @@ describe("get-relative-path", () => { }) it("should use custom workspace root when provided", () => { - const customWorkspace = path.normalize("/custom/workspace") + // Use path.resolve to ensure we get a proper absolute path for the platform + const customWorkspace = path.resolve("/custom/workspace") const result = generateNormalizedAbsolutePath("src/file.ts", customWorkspace) const expected = path.join(customWorkspace, "src/file.ts") expect(result).toBe(expected)