From 465bd0cef115bdb1da067d15bd52ddb632d189ce Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 22 Mar 2026 00:40:53 +0000 Subject: [PATCH] fix(test): normalize repo-relative paths on Windows --- test/scripts/check-file-utils.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/scripts/check-file-utils.test.ts b/test/scripts/check-file-utils.test.ts index b3d77abcf01..70e24cd726a 100644 --- a/test/scripts/check-file-utils.test.ts +++ b/test/scripts/check-file-utils.test.ts @@ -44,7 +44,10 @@ describe("scripts/check-file-utils collectFilesSync", () => { includeFile: (filePath) => filePath.endsWith(".ts"), }).map((filePath) => toPosixPath(path.relative(rootDir, filePath))); - expect(files.toSorted()).toEqual(["src/keep.ts", "src/nested/keep.test.ts"]); + expect(files.toSorted((left, right) => left.localeCompare(right))).toEqual([ + "src/keep.ts", + "src/nested/keep.test.ts", + ]); }); it("supports custom skipped directories", () => {