test(plugins): isolate public surface runtime env

This commit is contained in:
Vincent Koc
2026-06-19 19:07:55 +02:00
parent fb06df6cad
commit 38807ffba4

View File

@@ -12,6 +12,11 @@ import {
} from "./public-surface-runtime.js";
const tempDirs: string[] = [];
const noBundledPluginOverrideEnv = {
...process.env,
OPENCLAW_BUNDLED_PLUGINS_DIR: undefined,
OPENCLAW_DISABLE_BUNDLED_PLUGINS: undefined,
} satisfies NodeJS.ProcessEnv;
afterEach(() => {
for (const tempDir of tempDirs.splice(0)) {
@@ -112,6 +117,7 @@ describe("bundled plugin public surface runtime", () => {
bundledPluginsDirMode: "auto",
dirName: "demo",
artifactBasename: "api.js",
env: noBundledPluginOverrideEnv,
}),
).toBe(sourceModulePath);
});