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