fix(ci): stabilize windows paths
This commit is contained in:
@@ -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"));
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user