From ac5d7ee4cd5691e062116e9c1dcfa2e3d7df36d0 Mon Sep 17 00:00:00 2001 From: Onur <2453968+osolmaz@users.noreply.github.com> Date: Sun, 1 Mar 2026 18:46:51 +0100 Subject: [PATCH] Tests: normalize HOME expansion assertion on Windows --- src/infra/fs-safe.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/infra/fs-safe.test.ts b/src/infra/fs-safe.test.ts index 03a2888aa..359348ed3 100644 --- a/src/infra/fs-safe.test.ts +++ b/src/infra/fs-safe.test.ts @@ -182,7 +182,7 @@ describe("tilde expansion in file tools", () => { process.env.HOME = fakeHome; try { const result = expandHomePrefix("~/file.txt"); - expect(result).toBe(`${fakeHome}/file.txt`); + expect(path.normalize(result)).toBe(path.join(path.resolve(fakeHome), "file.txt")); } finally { process.env.HOME = originalHome; }