fix: use path.resolve for Windows compatibility in get-relative-path test

This commit is contained in:
hannesrudolph 2025-07-02 16:02:02 -06:00
parent f0f84f8086
commit 00ecdf99bd

View file

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