import { mkdtempSync, rmSync } from "node:fs"; import { tmpdir } from "node:os"; import { join } from "node:path"; import { afterAll } from "vitest"; // Host integration tests must never load or save the developer's real UI settings. const agentDir = mkdtempSync(join(tmpdir(), "selesai-zentui-host-")); process.env.SELESAI_CODING_AGENT_DIR = agentDir; afterAll(() => rmSync(agentDir, { recursive: true, force: true }));