diff --git a/src/cli/daemon-cli/register-service-commands.test.ts b/src/cli/daemon-cli/register-service-commands.test.ts index 7c75c67163d..9e23f76af6a 100644 --- a/src/cli/daemon-cli/register-service-commands.test.ts +++ b/src/cli/daemon-cli/register-service-commands.test.ts @@ -37,7 +37,7 @@ function createGatewayParentLikeCommand() { function expectSingleDaemonCall(mockFn: ReturnType) { expect(mockFn).toHaveBeenCalledTimes(1); - const opts = mockFn.mock.calls.at(0)?.[0] as Record | undefined; + const opts = mockFn.mock.calls[0]?.[0] as Record | undefined; if (opts === undefined) { throw new Error("expected daemon call options"); }