mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:50:43 +00:00
test(tooling): isolate a2ui copy env
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import fs from "node:fs/promises";
|
||||
import path from "node:path";
|
||||
import { afterEach, describe, expect, it } from "vitest";
|
||||
import { afterEach, beforeEach, describe, expect, it } from "vitest";
|
||||
import { copyA2uiAssets } from "../../scripts/canvas-a2ui-copy.js";
|
||||
import { withTempDir } from "../test-utils/temp-dir.js";
|
||||
|
||||
@@ -8,6 +8,11 @@ const ORIGINAL_SKIP_MISSING = process.env.OPENCLAW_A2UI_SKIP_MISSING;
|
||||
const ORIGINAL_SPARSE_PROFILE = process.env.OPENCLAW_SPARSE_PROFILE;
|
||||
|
||||
describe("canvas a2ui copy", () => {
|
||||
beforeEach(() => {
|
||||
delete process.env.OPENCLAW_A2UI_SKIP_MISSING;
|
||||
delete process.env.OPENCLAW_SPARSE_PROFILE;
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
if (ORIGINAL_SKIP_MISSING === undefined) {
|
||||
delete process.env.OPENCLAW_A2UI_SKIP_MISSING;
|
||||
|
||||
Reference in New Issue
Block a user