test(scripts): make run-vitest test Windows-safe · openclaw/openclaw@5c3fb1f
vincentkoc
·
2026-05-26
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -55,7 +55,8 @@ describe("scripts/run-vitest", () => {
|
55 | 55 | |
56 | 56 | it("reports missing explicit test files before Vitest can silently ignore them", () => { |
57 | 57 | const fsImpl = { |
58 | | -existsSync: (filePath: string) => filePath.endsWith("src/agents/bash-tools.test.ts"), |
| 58 | +existsSync: (filePath: string) => |
| 59 | +filePath.replaceAll("\\", "/").endsWith("src/agents/bash-tools.test.ts"), |
59 | 60 | }; |
60 | 61 | |
61 | 62 | expect( |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。