mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-17 11:25:48 +02:00
Fix auth mock in tests
Add missing /api/v1/auth/status mock to MSW handlers to prevent network errors during frontend tests
This commit is contained in:
@@ -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
|
||||
// ========================================================================
|
||||
|
||||
Reference in New Issue
Block a user