test(plugins): isolate public surface runtime env · openclaw/openclaw@38807ff
vincentkoc
·
2026-06-20
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -12,6 +12,11 @@ import {
|
12 | 12 | } from "./public-surface-runtime.js"; |
13 | 13 | |
14 | 14 | const tempDirs: string[] = []; |
| 15 | +const noBundledPluginOverrideEnv = { |
| 16 | + ...process.env, |
| 17 | +OPENCLAW_BUNDLED_PLUGINS_DIR: undefined, |
| 18 | +OPENCLAW_DISABLE_BUNDLED_PLUGINS: undefined, |
| 19 | +} satisfies NodeJS.ProcessEnv; |
15 | 20 | |
16 | 21 | afterEach(() => { |
17 | 22 | for (const tempDir of tempDirs.splice(0)) { |
@@ -112,6 +117,7 @@ describe("bundled plugin public surface runtime", () => {
|
112 | 117 | bundledPluginsDirMode: "auto", |
113 | 118 | dirName: "demo", |
114 | 119 | artifactBasename: "api.js", |
| 120 | +env: noBundledPluginOverrideEnv, |
115 | 121 | }), |
116 | 122 | ).toBe(sourceModulePath); |
117 | 123 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。