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

This commit is contained in:
Vignesh
2026-01-26 19:20:54 -08:00
committed by GitHub
parent 959ddae612
commit b151b8d196
9 changed files with 22 additions and 9 deletions

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>`,
);
});
}
});