test(discord): use lightweight clears in outbound plugin setup

This commit is contained in:
Peter Steinberger
2026-02-22 00:24:59 +00:00
parent a9b14df1e3
commit f37a09a9e6

View File

@@ -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 () => {