From 9387ec9933439d3eeaed6586ee62ce2ab7b5c5c6 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Mon, 13 Apr 2026 15:09:33 +0100 Subject: [PATCH] test(wizard): mock auth profile runtime seam --- src/wizard/setup.test.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/wizard/setup.test.ts b/src/wizard/setup.test.ts index 80b9f996207..1b59aba655a 100644 --- a/src/wizard/setup.test.ts +++ b/src/wizard/setup.test.ts @@ -131,6 +131,10 @@ vi.mock("../agents/auth-profiles.js", () => ({ ensureAuthProfileStore, })); +vi.mock("../agents/auth-profiles.runtime.js", () => ({ + ensureAuthProfileStore, +})); + vi.mock("../commands/auth-choice-prompt.js", () => ({ promptAuthChoiceGrouped, })); @@ -323,6 +327,7 @@ describe("runSetupWizard", () => { const multiselect: WizardPrompter["multiselect"] = vi.fn(async () => []); const prompter = buildWizardPrompter({ select, multiselect }); const runtime = createRuntime({ throwsOnExit: true }); + ensureAuthProfileStore.mockClear(); await runSetupWizard( {