From 17d02a6a7354be43d63b073b4a352fa9a28d44d5 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 2 May 2026 11:45:14 +0100 Subject: [PATCH] test(wizard): mock migration detection in setup tests --- src/wizard/setup.test.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/wizard/setup.test.ts b/src/wizard/setup.test.ts index b752e2fc0cb..ec3d511f92c 100644 --- a/src/wizard/setup.test.ts +++ b/src/wizard/setup.test.ts @@ -89,6 +89,8 @@ const finalizeSetupWizard = vi.hoisted(() => const listChannelPlugins = vi.hoisted(() => vi.fn(() => [])); const logConfigUpdated = vi.hoisted(() => vi.fn(() => {})); const setupInternalHooks = vi.hoisted(() => vi.fn(async (cfg) => cfg)); +const detectSetupMigrationSources = vi.hoisted(() => vi.fn(async () => [])); +const runSetupMigrationImport = vi.hoisted(() => vi.fn(async () => {})); const setupChannels = vi.hoisted(() => vi.fn(async (cfg) => cfg)); const setupSkills = vi.hoisted(() => vi.fn(async (cfg) => cfg)); @@ -206,6 +208,11 @@ vi.mock("../commands/onboard-hooks.js", () => ({ setupInternalHooks, })); +vi.mock("./setup.migration-import.js", () => ({ + detectSetupMigrationSources, + runSetupMigrationImport, +})); + vi.mock("../config/config.js", () => ({ DEFAULT_GATEWAY_PORT: 18789, createConfigIO,