diff --git a/src/channels/plugins/whatsapp-heartbeat.test.ts b/src/channels/plugins/whatsapp-heartbeat.test.ts index acde8d065..5ec7215c0 100644 --- a/src/channels/plugins/whatsapp-heartbeat.test.ts +++ b/src/channels/plugins/whatsapp-heartbeat.test.ts @@ -39,8 +39,8 @@ describe("resolveWhatsAppHeartbeatRecipients", () => { } beforeEach(() => { - vi.mocked(loadSessionStore).mockReset(); - vi.mocked(readChannelAllowFromStoreSync).mockReset(); + vi.mocked(loadSessionStore).mockClear(); + vi.mocked(readChannelAllowFromStoreSync).mockClear(); setAllowFromStore([]); }); diff --git a/src/hooks/bundled/boot-md/handler.test.ts b/src/hooks/bundled/boot-md/handler.test.ts index 6308d4085..bb0e76767 100644 --- a/src/hooks/bundled/boot-md/handler.test.ts +++ b/src/hooks/bundled/boot-md/handler.test.ts @@ -48,8 +48,6 @@ describe("boot-md handler", () => { beforeEach(() => { vi.clearAllMocks(); - logWarn.mockReset(); - logDebug.mockReset(); }); it("skips non-gateway events", async () => { diff --git a/src/infra/heartbeat-runner.returns-default-unset.test.ts b/src/infra/heartbeat-runner.returns-default-unset.test.ts index fcc8fae96..e906c50bd 100644 --- a/src/infra/heartbeat-runner.returns-default-unset.test.ts +++ b/src/infra/heartbeat-runner.returns-default-unset.test.ts @@ -760,7 +760,7 @@ describe("runHeartbeatOnce", () => { }), ); - replySpy.mockReset(); + replySpy.mockClear(); replySpy.mockResolvedValue([{ text: testCase.message }]); const sendWhatsApp = vi .fn>() @@ -896,7 +896,7 @@ describe("runHeartbeatOnce", () => { }), ); - replySpy.mockReset(); + replySpy.mockClear(); replySpy.mockResolvedValue(testCase.replies); const sendWhatsApp = vi .fn>()