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