From bf732b88e7b10d7322e97c0e43d8de5a3d0d0383 Mon Sep 17 00:00:00 2001 From: Ayaan Zaidi Date: Mon, 23 Feb 2026 10:50:02 +0530 Subject: [PATCH] test(cron): avoid delivery.mode type widening in isolated announce test --- ....delivers-response-has-heartbeat-ok-but-includes.test.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/cron/isolated-agent.delivers-response-has-heartbeat-ok-but-includes.test.ts b/src/cron/isolated-agent.delivers-response-has-heartbeat-ok-but-includes.test.ts index b4d76cb34fd..d9b5f41b5d4 100644 --- a/src/cron/isolated-agent.delivers-response-has-heartbeat-ok-but-includes.test.ts +++ b/src/cron/isolated-agent.delivers-response-has-heartbeat-ok-but-includes.test.ts @@ -206,10 +206,8 @@ describe("runCronIsolatedAgentTurn", () => { }); const cfg = makeCfg(home, storePath); - const job = { - ...makeJob({ kind: "agentTurn", message: "do it" }), - delivery: { mode: "announce", channel: "last" as const }, - }; + const job = makeJob({ kind: "agentTurn", message: "do it" }); + job.delivery = { mode: "announce", channel: "last" }; await runCronIsolatedAgentTurn({ cfg,