diff --git a/src/infra/outbound/message-action-runner.test.ts b/src/infra/outbound/message-action-runner.test.ts index f2e6426d2..80d3e5446 100644 --- a/src/infra/outbound/message-action-runner.test.ts +++ b/src/infra/outbound/message-action-runner.test.ts @@ -624,6 +624,9 @@ describe("runMessageAction sandboxed media validation", () => { }); expect(result.kind).toBe("send"); + if (result.kind !== "send") { + throw new Error("expected send result"); + } expect(result.sendResult?.mediaUrl).toBe(tmpFile); } finally { await fs.rm(sandboxDir, { recursive: true, force: true });