From 9df896e5b9495e68948e42f2ee32fa16e9fb20a0 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 22 Feb 2026 07:46:25 +0000 Subject: [PATCH] test(auto-reply): use lightweight clears in agent runner setup --- src/auto-reply/reply/agent-runner-helpers.test.ts | 4 ++-- .../reply/agent-runner.misc.runreplyagent.test.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/auto-reply/reply/agent-runner-helpers.test.ts b/src/auto-reply/reply/agent-runner-helpers.test.ts index eee031403..4029edcf7 100644 --- a/src/auto-reply/reply/agent-runner-helpers.test.ts +++ b/src/auto-reply/reply/agent-runner-helpers.test.ts @@ -34,8 +34,8 @@ const { describe("agent runner helpers", () => { beforeEach(() => { - hoisted.loadSessionStoreMock.mockReset(); - hoisted.scheduleFollowupDrainMock.mockReset(); + hoisted.loadSessionStoreMock.mockClear(); + hoisted.scheduleFollowupDrainMock.mockClear(); }); it("detects audio payloads from mediaUrl/mediaUrls", () => { diff --git a/src/auto-reply/reply/agent-runner.misc.runreplyagent.test.ts b/src/auto-reply/reply/agent-runner.misc.runreplyagent.test.ts index 3d19d8d29..66dac19a2 100644 --- a/src/auto-reply/reply/agent-runner.misc.runreplyagent.test.ts +++ b/src/auto-reply/reply/agent-runner.misc.runreplyagent.test.ts @@ -75,10 +75,10 @@ type RunWithModelFallbackParams = { }; beforeEach(() => { - runEmbeddedPiAgentMock.mockReset(); - runCliAgentMock.mockReset(); - runWithModelFallbackMock.mockReset(); - runtimeErrorMock.mockReset(); + runEmbeddedPiAgentMock.mockClear(); + runCliAgentMock.mockClear(); + runWithModelFallbackMock.mockClear(); + runtimeErrorMock.mockClear(); // Default: no provider switch; execute the chosen provider+model. runWithModelFallbackMock.mockImplementation(