test(cli): use lightweight clears in message helper and gateway chat setup

This commit is contained in:
Peter Steinberger
2026-02-22 00:23:08 +00:00
parent 735fc23faf
commit f28fcf243a
2 changed files with 9 additions and 9 deletions

View File

@@ -36,10 +36,10 @@ describe("resolveGatewayConnection", () => {
beforeEach(() => {
envSnapshot = captureEnv(["OPENCLAW_GATEWAY_TOKEN", "OPENCLAW_GATEWAY_PASSWORD"]);
loadConfig.mockReset();
resolveGatewayPort.mockReset();
pickPrimaryTailnetIPv4.mockReset();
pickPrimaryLanIPv4.mockReset();
loadConfig.mockClear();
resolveGatewayPort.mockClear();
pickPrimaryTailnetIPv4.mockClear();
pickPrimaryLanIPv4.mockClear();
resolveGatewayPort.mockReturnValue(18789);
pickPrimaryTailnetIPv4.mockReturnValue(undefined);
pickPrimaryLanIPv4.mockReturnValue(undefined);