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"); }