From dbd3e2990941a1e8b5bd387fbc953fd2b7ecb85a Mon Sep 17 00:00:00 2001 From: Narayan Vyas Date: Mon, 26 Jan 2026 20:29:14 -0800 Subject: [PATCH] test: set CLAWDBOT_PROFILE=isolated in test environment The tests updated in b151b8d19 expect --profile isolated in CLI output, but CLAWDBOT_PROFILE was not being set in the test environment. This fix ensures the test environment sets CLAWDBOT_PROFILE=isolated so formatCliCommand includes the profile flag in its output. Co-Authored-By: Claude Opus 4.5 --- test/test-env.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test-env.ts b/test/test-env.ts index 838713c52..357fa1011 100644 --- a/test/test-env.ts +++ b/test/test-env.ts @@ -55,6 +55,7 @@ export function installTestEnv(): { cleanup: () => void; tempHome: string } { const restore: RestoreEntry[] = [ { key: "CLAWDBOT_TEST_FAST", value: process.env.CLAWDBOT_TEST_FAST }, + { key: "CLAWDBOT_PROFILE", value: process.env.CLAWDBOT_PROFILE }, { key: "HOME", value: process.env.HOME }, { key: "USERPROFILE", value: process.env.USERPROFILE }, { key: "XDG_CONFIG_HOME", value: process.env.XDG_CONFIG_HOME }, @@ -86,6 +87,7 @@ export function installTestEnv(): { cleanup: () => void; tempHome: string } { process.env.USERPROFILE = tempHome; process.env.CLAWDBOT_TEST_HOME = tempHome; process.env.CLAWDBOT_TEST_FAST = "1"; + process.env.CLAWDBOT_PROFILE = "isolated"; // Ensure test runs never touch the developer's real config/state, even if they have overrides set. delete process.env.CLAWDBOT_CONFIG_PATH;