diff --git a/src/commands/auth-choice.apply.plugin-provider.test.ts b/src/commands/auth-choice.apply.plugin-provider.test.ts index 69d81b5abcf..db7d1b4a9ec 100644 --- a/src/commands/auth-choice.apply.plugin-provider.test.ts +++ b/src/commands/auth-choice.apply.plugin-provider.test.ts @@ -461,7 +461,7 @@ describe("applyAuthChoiceLoadedPluginProvider", () => { const result = await applyAuthChoiceLoadedPluginProvider(buildParams()); expect(ensureOnboardingPluginInstalled).toHaveBeenCalledOnce(); - const [installParams] = ensureOnboardingPluginInstalled.mock.calls.at(0) ?? []; + const [installParams] = ensureOnboardingPluginInstalled.mock.calls[0] ?? []; if (installParams === undefined) { throw new Error("expected plugin install params"); }