Skip to content

Commit d583662

Browse files
committed
test(tooling): isolate a2ui copy env
1 parent d89be34 commit d583662

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/scripts/canvas-a2ui-copy.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
import fs from "node:fs/promises";
22
import path from "node:path";
3-
import { afterEach, describe, expect, it } from "vitest";
3+
import { afterEach, beforeEach, describe, expect, it } from "vitest";
44
import { copyA2uiAssets } from "../../scripts/canvas-a2ui-copy.js";
55
import { withTempDir } from "../test-utils/temp-dir.js";
66

77
const ORIGINAL_SKIP_MISSING = process.env.OPENCLAW_A2UI_SKIP_MISSING;
88
const ORIGINAL_SPARSE_PROFILE = process.env.OPENCLAW_SPARSE_PROFILE;
99

1010
describe("canvas a2ui copy", () => {
11+
beforeEach(() => {
12+
delete process.env.OPENCLAW_A2UI_SKIP_MISSING;
13+
delete process.env.OPENCLAW_SPARSE_PROFILE;
14+
});
15+
1116
afterEach(() => {
1217
if (ORIGINAL_SKIP_MISSING === undefined) {
1318
delete process.env.OPENCLAW_A2UI_SKIP_MISSING;

0 commit comments

Comments
 (0)