From dad240eecd1359e4132caa82fed4ba5ea5b522d1 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 12 May 2026 07:20:43 +0100 Subject: [PATCH] test: guard gateway run loop mock calls --- src/cli/gateway-cli/run-loop.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/gateway-cli/run-loop.test.ts b/src/cli/gateway-cli/run-loop.test.ts index 8273d9bf7a4..716c0c6af27 100644 --- a/src/cli/gateway-cli/run-loop.test.ts +++ b/src/cli/gateway-cli/run-loop.test.ts @@ -289,7 +289,7 @@ function expectRestartHandoffCall(expected: { supervisorMode: "external" | "launchd"; }) { expect(writeGatewayRestartHandoffSync).toHaveBeenCalledTimes(1); - const [handoff] = writeGatewayRestartHandoffSync.mock.calls[0] ?? []; + const [handoff] = writeGatewayRestartHandoffSync.mock.calls.at(0) ?? []; if (!handoff || typeof handoff !== "object" || Array.isArray(handoff)) { throw new Error("expected restart handoff options object"); }