test: mock the wizard session refusal in the setup telemetry consent test

This commit is contained in:
Linus Rath
2026-11-01 01:35:20 +01:00
parent 3f02ae0448
commit 2e5397c228
@@ -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 () => {} },
}));