From 875dffca9ef3bf7012e1df128a47ac12ff398b8a Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 13 May 2026 05:09:34 +0100 Subject: [PATCH] test: dedupe heartbeat tool mock reads --- src/infra/heartbeat-runner.tool-response.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/infra/heartbeat-runner.tool-response.test.ts b/src/infra/heartbeat-runner.tool-response.test.ts index 453d929a48f..78fe8478547 100644 --- a/src/infra/heartbeat-runner.tool-response.test.ts +++ b/src/infra/heartbeat-runner.tool-response.test.ts @@ -82,7 +82,7 @@ describe("runHeartbeatOnce heartbeat response tool", () => { } function replyCall(replySpy: ReturnType): unknown[] { - const call = replySpy.mock.calls.at(0); + const call = replySpy.mock.calls[0]; if (!call) { throw new Error("Expected reply call"); } @@ -90,7 +90,7 @@ describe("runHeartbeatOnce heartbeat response tool", () => { } function replyContext(replySpy: ReturnType): { Body?: string } { - const context = replyCall(replySpy).at(0); + const context = replyCall(replySpy)[0]; if (!context || typeof context !== "object") { throw new Error("Expected reply context"); } @@ -102,7 +102,7 @@ describe("runHeartbeatOnce heartbeat response tool", () => { forceHeartbeatTool?: boolean; sourceReplyDeliveryMode?: string; } { - const options = replyCall(replySpy).at(1); + const options = replyCall(replySpy)[1]; if (!options || typeof options !== "object") { throw new Error("Expected reply options"); }