mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-22 15:31:07 +00:00
fix(test): normalize repo-relative paths on Windows
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user