test(tooling): isolate a2ui copy env · openclaw/openclaw@d583662
vincentkoc
·
2026-05-03
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import fs from "node:fs/promises"; |
2 | 2 | import path from "node:path"; |
3 | | -import { afterEach, describe, expect, it } from "vitest"; |
| 3 | +import { afterEach, beforeEach, describe, expect, it } from "vitest"; |
4 | 4 | import { copyA2uiAssets } from "../../scripts/canvas-a2ui-copy.js"; |
5 | 5 | import { withTempDir } from "../test-utils/temp-dir.js"; |
6 | 6 | |
7 | 7 | const ORIGINAL_SKIP_MISSING = process.env.OPENCLAW_A2UI_SKIP_MISSING; |
8 | 8 | const ORIGINAL_SPARSE_PROFILE = process.env.OPENCLAW_SPARSE_PROFILE; |
9 | 9 | |
10 | 10 | describe("canvas a2ui copy", () => { |
| 11 | +beforeEach(() => { |
| 12 | +delete process.env.OPENCLAW_A2UI_SKIP_MISSING; |
| 13 | +delete process.env.OPENCLAW_SPARSE_PROFILE; |
| 14 | +}); |
| 15 | + |
11 | 16 | afterEach(() => { |
12 | 17 | if (ORIGINAL_SKIP_MISSING === undefined) { |
13 | 18 | delete process.env.OPENCLAW_A2UI_SKIP_MISSING; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。