test: stabilize CLI hint assertions under CLAWDBOT_PROFILE (#2507)

This commit is contained in:
Vignesh authored and GitHub committed 2026-01-26 19:20:54 -08:00
1 parent 959ddae612
commit b151b8d196
9 files changed
+22 -9

No files matched your search

+4 -1
View File
@@ -36,7 +36,10 @@ describe("buildPairingReply", () => {
const text = buildPairingReply(testCase);
expect(text).toContain(testCase.idLine);
expect(text).toContain(`Pairing code: ${testCase.code}`);
expect(text).toContain(`clawdbot pairing approve ${testCase.channel} <code>`);
// CLI commands should respect CLAWDBOT_PROFILE when set (most tests run with isolated profile)
expect(text).toContain(
`clawdbot --profile isolated pairing approve ${testCase.channel} <code>`,
);
});
}
});