mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-25 08:39:35 +00:00
test(launcher): isolate bundled plugin env in fixtures
This commit is contained in:
@@ -129,6 +129,9 @@ function isProcessAlive(pid: number | undefined): boolean {
|
||||
|
||||
function launcherEnv(extra: NodeJS.ProcessEnv = {}): NodeJS.ProcessEnv {
|
||||
const env = { ...process.env, ...extra };
|
||||
delete env.OPENCLAW_BUNDLED_PLUGINS_DIR;
|
||||
delete env.OPENCLAW_DISABLE_BUNDLED_PLUGINS;
|
||||
delete env.OPENCLAW_TEST_TRUST_BUNDLED_PLUGINS_DIR;
|
||||
delete env.NODE_COMPILE_CACHE;
|
||||
delete env.NODE_DISABLE_COMPILE_CACHE;
|
||||
for (const [key, value] of Object.entries(extra)) {
|
||||
|
||||
Reference in New Issue
Block a user