From 8084cbc345c03e4bfe4d027cdd3d816a67a55916 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 12 May 2026 05:55:06 +0100 Subject: [PATCH] test: guard daemon restart mock call --- src/cli/daemon-cli/restart-health.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/daemon-cli/restart-health.test.ts b/src/cli/daemon-cli/restart-health.test.ts index e6f4ba745c0..23a2dcb5c6e 100644 --- a/src/cli/daemon-cli/restart-health.test.ts +++ b/src/cli/daemon-cli/restart-health.test.ts @@ -55,7 +55,7 @@ function makeGatewayService( } function firstCallArg(mock: { mock: { calls: unknown[][] } }): unknown { - const call = mock.mock.calls[0]; + const call = mock.mock.calls.at(0); if (!call) { throw new Error("Expected first mock call"); }