fix(test): normalize repo-relative paths on Windows

This commit is contained in:
Peter Steinberger
2026-03-22 00:40:53 +00:00
parent 45f84cf639
commit 465bd0cef1

View File

@@ -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", () => {