From f37a09a9e6c1457c2c5669c6f8898c9ad33c5e94 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 22 Feb 2026 00:24:59 +0000 Subject: [PATCH] test(discord): use lightweight clears in outbound plugin setup --- src/channels/plugins/outbound/discord.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/channels/plugins/outbound/discord.test.ts b/src/channels/plugins/outbound/discord.test.ts index 97bd8b2ff7b..e6d45429a72 100644 --- a/src/channels/plugins/outbound/discord.test.ts +++ b/src/channels/plugins/outbound/discord.test.ts @@ -71,19 +71,19 @@ describe("normalizeDiscordOutboundTarget", () => { describe("discordOutbound", () => { beforeEach(() => { - hoisted.sendMessageDiscordMock.mockReset().mockResolvedValue({ + hoisted.sendMessageDiscordMock.mockClear().mockResolvedValue({ messageId: "msg-1", channelId: "ch-1", }); - hoisted.sendPollDiscordMock.mockReset().mockResolvedValue({ + hoisted.sendPollDiscordMock.mockClear().mockResolvedValue({ messageId: "poll-1", channelId: "ch-1", }); - hoisted.sendWebhookMessageDiscordMock.mockReset().mockResolvedValue({ + hoisted.sendWebhookMessageDiscordMock.mockClear().mockResolvedValue({ messageId: "msg-webhook-1", channelId: "thread-1", }); - hoisted.getThreadBindingManagerMock.mockReset().mockReturnValue(null); + hoisted.getThreadBindingManagerMock.mockClear().mockReturnValue(null); }); it("routes text sends to thread target when threadId is provided", async () => {