mirror of
https://github.com/yuangyaa/openclaw.git
synced 2026-07-19 13:47:57 +08:00
perf(test): replace module resets with direct spies and runtime seams
This commit is contained in:
@@ -38,7 +38,6 @@ async function withEnvOverride<T>(
|
||||
process.env[key] = overrides[key];
|
||||
}
|
||||
}
|
||||
vi.resetModules();
|
||||
try {
|
||||
return await fn();
|
||||
} finally {
|
||||
@@ -49,7 +48,6 @@ async function withEnvOverride<T>(
|
||||
process.env[key] = saved[key];
|
||||
}
|
||||
}
|
||||
vi.resetModules();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user