From d6dcc7656de842bde5b6d9121b5172daf617a2ab Mon Sep 17 00:00:00 2001 From: maziggy Date: Tue, 27 Jan 2026 11:23:23 +0100 Subject: [PATCH] Fix auth mock in tests Add missing /api/v1/auth/status mock to MSW handlers to prevent network errors during frontend tests --- frontend/src/__tests__/mocks/handlers.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/frontend/src/__tests__/mocks/handlers.ts b/frontend/src/__tests__/mocks/handlers.ts index d503c2cf9..46089ea09 100644 --- a/frontend/src/__tests__/mocks/handlers.ts +++ b/frontend/src/__tests__/mocks/handlers.ts @@ -269,6 +269,17 @@ export const handlers = [ return HttpResponse.json(body); }), + // ======================================================================== + // Auth + // ======================================================================== + + http.get('/api/v1/auth/status', () => { + return HttpResponse.json({ + auth_enabled: false, + requires_setup: false, + }); + }), + // ======================================================================== // Version / Health // ========================================================================