test(wizard): mock auth profile runtime seam

This commit is contained in:
Vincent Koc
2026-04-13 15:09:33 +01:00
parent e14efafa68
commit 9387ec9933

View File

@@ -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(
{