mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 22:17:00 +00:00
test(plugins): isolate public surface runtime env
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user