mirror of
https://fastgit.cc/github.com/openclaw/openclaw
synced 2026-05-01 06:36:23 +08:00
test(wizard): mock auth profile runtime seam
This commit is contained in:
@@ -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(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user