mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-12 09:41:11 +00:00
14 lines
556 B
TypeScript
14 lines
556 B
TypeScript
import path from "node:path";
|
|
import { describe, expect, it } from "vitest";
|
|
import { createConfigIO } from "../src/config/config.js";
|
|
|
|
describe("shared test setup home isolation", () => {
|
|
it("routes default config IO through the per-worker temp home", () => {
|
|
const testHome = process.env.OPENCLAW_TEST_HOME;
|
|
expect(testHome).toBeTruthy();
|
|
expect(process.env.HOME).toBe(testHome);
|
|
expect(process.env.USERPROFILE).toBe(testHome);
|
|
expect(createConfigIO().configPath).toBe(path.join(testHome!, ".openclaw", "openclaw.json"));
|
|
});
|
|
});
|