- Removed the Cerberus toggle functionality from the Security page. - Introduced a new feature flags section in the System Settings page to manage Cerberus and Uptime Monitoring features. - Updated tests to reflect the changes in the Security and System Settings components. - Added loading overlays for feature toggling actions.
669 B
669 B
Current Spec & Implementation Plan
Goal
Clean up Security/CrowdSec frontend test warnings and ensure backend tests run via VS Code task.
Steps
- Frontend tests: Update
frontend/src/pages/__tests__/Security*.tsxto wrap React state updates inact(...)and ensure React Query mocks return defined data shapes (provide default objects/arrays instead ofundefined). - Mock defaults: Where tests mock query responses for Security/CrowdSec pages, supply minimal valid data (e.g., empty arrays/objects) to avoid undefined access warnings.
- Backend tests: Run task "Go: Test Backend" (
shell: Go: Test Backend) to executecd backend && go test ./... -v.