From 2e5397c228fdc171d299e63f26fc0085b28aeb9b Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Sun, 1 Nov 2026 01:35:20 +0100 Subject: [PATCH] test: mock the wizard session refusal in the setup telemetry consent test --- app/api/setup/__tests__/step-telemetry-consent.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/setup/__tests__/step-telemetry-consent.test.ts b/app/api/setup/__tests__/step-telemetry-consent.test.ts index b49cbdc99..6cf86b834 100644 --- a/app/api/setup/__tests__/step-telemetry-consent.test.ts +++ b/app/api/setup/__tests__/step-telemetry-consent.test.ts @@ -10,7 +10,7 @@ import { NextRequest } from 'next/server'; // It changes only the consent fields of what is stored now. vi.mock('@/lib/setup/state', () => ({ detectSetupState: () => 'bootstrap' })); -vi.mock('@/lib/setup/session', () => ({ authenticateWizardRequest: async () => true })); +vi.mock('@/lib/setup/session', () => ({ authenticateWizardRequest: async () => true, wizardSessionRefusal: async () => null })); vi.mock('@/lib/admin/config-manager', () => ({ configManager: { ensureLoaded: async () => {}, setAdminConfig: async () => {} }, }));