diff --git a/src/agents/tools/web-fetch.ssrf.e2e.test.ts b/src/agents/tools/web-fetch.ssrf.e2e.test.ts index fd4593c22ad..af3d934c208 100644 --- a/src/agents/tools/web-fetch.ssrf.e2e.test.ts +++ b/src/agents/tools/web-fetch.ssrf.e2e.test.ts @@ -74,7 +74,7 @@ describe("web_fetch SSRF protection", () => { afterEach(() => { global.fetch = priorFetch; - lookupMock.mockReset(); + lookupMock.mockClear(); vi.restoreAllMocks(); }); diff --git a/src/auto-reply/reply/commands-subagents-focus.test.ts b/src/auto-reply/reply/commands-subagents-focus.test.ts index a165acf0886..34183c75294 100644 --- a/src/auto-reply/reply/commands-subagents-focus.test.ts +++ b/src/auto-reply/reply/commands-subagents-focus.test.ts @@ -163,7 +163,7 @@ async function focusCodexAcpInThread(fake = createFakeThreadBindingManager()) { describe("/focus, /unfocus, /agents", () => { beforeEach(() => { resetSubagentRegistryForTests(); - hoisted.callGatewayMock.mockReset(); + hoisted.callGatewayMock.mockClear(); hoisted.getThreadBindingManagerMock.mockClear().mockReturnValue(null); hoisted.resolveThreadBindingThreadNameMock.mockClear().mockReturnValue("🤖 codex"); });