mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 15:47:28 +00:00
fix: trim non-live test setup work
This commit is contained in:
committed by
Peter Steinberger
parent
33e6a6724d
commit
d6ad92c1a0
@@ -355,7 +355,8 @@ export function installTestEnv(options?: { loadProfileEnv?: boolean }): {
|
||||
const realHome = process.env.HOME ?? os.homedir();
|
||||
const liveEnvSnapshot = { ...process.env };
|
||||
|
||||
if (options?.loadProfileEnv ?? live) {
|
||||
const shouldLoadProfileEnv = options?.loadProfileEnv ?? (live || allowRealHome);
|
||||
if (shouldLoadProfileEnv) {
|
||||
loadProfileEnv(realHome);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user