fix(ci): stabilize windows paths

This commit is contained in:
Peter Steinberger
2026-01-08 03:02:46 +00:00
parent 7bddaa41ea
commit 6e4174b5dc
11 changed files with 126 additions and 41 deletions

View File

@@ -1,3 +1,4 @@
import path from "node:path";
import { describe, expect, it } from "vitest";
import {
@@ -35,6 +36,6 @@ describe("nodes screen helpers", () => {
tmpDir: "/tmp",
id: "id1",
});
expect(p).toBe("/tmp/clawdbot-screen-record-id1.mp4");
expect(p).toBe(path.join("/tmp", "clawdbot-screen-record-id1.mp4"));
});
});

View File

@@ -72,10 +72,11 @@ describe("applyCliProfileEnv", () => {
env,
homedir: () => "/home/peter",
});
const expectedStateDir = path.join("/home/peter", ".clawdbot-dev");
expect(env.CLAWDBOT_PROFILE).toBe("dev");
expect(env.CLAWDBOT_STATE_DIR).toBe("/home/peter/.clawdbot-dev");
expect(env.CLAWDBOT_STATE_DIR).toBe(expectedStateDir);
expect(env.CLAWDBOT_CONFIG_PATH).toBe(
path.join("/home/peter/.clawdbot-dev", "clawdbot.json"),
path.join(expectedStateDir, "clawdbot.json"),
);
expect(env.CLAWDBOT_GATEWAY_PORT).toBe("19001");
});