diff --git a/src/auto-reply/reply/commands-subagents-spawn.test.ts b/src/auto-reply/reply/commands-subagents-spawn.test.ts index e09392d002d..a339cd15ba0 100644 --- a/src/auto-reply/reply/commands-subagents-spawn.test.ts +++ b/src/auto-reply/reply/commands-subagents-spawn.test.ts @@ -60,8 +60,8 @@ const baseCfg = { describe("/subagents spawn command", () => { beforeEach(() => { resetSubagentRegistryForTests(); - spawnSubagentDirectMock.mockReset(); - hoisted.callGatewayMock.mockReset(); + spawnSubagentDirectMock.mockClear(); + hoisted.callGatewayMock.mockClear(); }); it("shows usage when agentId is missing", async () => { diff --git a/src/browser/pw-session.get-page-for-targetid.extension-fallback.test.ts b/src/browser/pw-session.get-page-for-targetid.extension-fallback.test.ts index 1dee05464e3..b9908c5f22d 100644 --- a/src/browser/pw-session.get-page-for-targetid.extension-fallback.test.ts +++ b/src/browser/pw-session.get-page-for-targetid.extension-fallback.test.ts @@ -8,8 +8,8 @@ const getChromeWebSocketUrlSpy = vi.spyOn(chromeModule, "getChromeWebSocketUrl") describe("pw-session getPageForTargetId", () => { it("falls back to the only page when CDP session attachment is blocked (extension relays)", async () => { - connectOverCdpSpy.mockReset(); - getChromeWebSocketUrlSpy.mockReset(); + connectOverCdpSpy.mockClear(); + getChromeWebSocketUrlSpy.mockClear(); const pageOn = vi.fn(); const contextOn = vi.fn(); diff --git a/src/telegram/bot.media.includes-location-text-ctx-fields-pins.e2e.test.ts b/src/telegram/bot.media.includes-location-text-ctx-fields-pins.e2e.test.ts index 677503a1028..96b93358b7f 100644 --- a/src/telegram/bot.media.includes-location-text-ctx-fields-pins.e2e.test.ts +++ b/src/telegram/bot.media.includes-location-text-ctx-fields-pins.e2e.test.ts @@ -6,8 +6,8 @@ async function createMessageHandlerAndReplySpy() { const replyModule = await import("../auto-reply/reply.js"); const replySpy = (replyModule as unknown as { __replySpy: ReturnType }).__replySpy; - onSpy.mockReset(); - replySpy.mockReset(); + onSpy.mockClear(); + replySpy.mockClear(); createTelegramBot({ token: "tok" }); const handler = onSpy.mock.calls.find((call) => call[0] === "message")?.[1] as (