fix(ci): normalize windows test output

This commit is contained in:
Peter Steinberger committed 2026-01-08 03:44:08 +00:00
1 parent 88a8767fa8
commit ad6095c807
2 files changed
+5 -3

No files matched your search

+3 -1
View File
@@ -513,8 +513,10 @@ describe("doctor", () => {
.spyOn(os, "homedir")
.mockReturnValue("/Users/steipete");
const realExists = fs.existsSync;
const legacyPath = path.join("/Users/steipete", "clawdis");
const existsSpy = vi.spyOn(fs, "existsSync").mockImplementation((value) => {
if (value === "/Users/steipete/clawdis") return true;
if (value === "/Users/steipete/clawdis" || value === legacyPath)
return true;
return realExists(value as never);
});