From f65e357e00a9b837de662b261011c8e9d84760cd Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Thu, 7 May 2026 04:42:28 +0100 Subject: [PATCH] test: fix discord external output mock typing --- extensions/discord/src/voice-message.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/extensions/discord/src/voice-message.test.ts b/extensions/discord/src/voice-message.test.ts index 20e4f966b57..feee9c0175d 100644 --- a/extensions/discord/src/voice-message.test.ts +++ b/extensions/discord/src/voice-message.test.ts @@ -72,7 +72,8 @@ describe("ensureOggOpus", () => { it("re-encodes .ogg opus when sample rate is not 48kHz", async () => { runFfprobeMock.mockResolvedValueOnce("opus,24000\n"); - runFfmpegMock.mockImplementationOnce(async (args: string[]) => { + runFfmpegMock.mockImplementationOnce(async (...callArgs: unknown[]) => { + const args = callArgs[0] as string[]; const outputPath = args.at(-1); if (typeof outputPath !== "string") { throw new Error("missing ffmpeg output path"); @@ -95,7 +96,8 @@ describe("ensureOggOpus", () => { }); it("re-encodes non-ogg input with bounded ffmpeg execution", async () => { - runFfmpegMock.mockImplementationOnce(async (args: string[]) => { + runFfmpegMock.mockImplementationOnce(async (...callArgs: unknown[]) => { + const args = callArgs[0] as string[]; const outputPath = args.at(-1); if (typeof outputPath !== "string") { throw new Error("missing ffmpeg output path");