Files
nuzlocke-tracker/frontend/src
Julian Tabel 533f0cad4a
All checks were successful
CI / backend-tests (pull_request) Successful in 28s
CI / frontend-tests (pull_request) Successful in 32s
fix(tests): mock useAuth in Layout tests for auth-aware navigation
Layout now renders different nav links based on auth state. Tests were
using a real AuthProvider which resolved to no user, causing them to
look for "My Runs" and "Admin" links that only appear when logged in.

Mock useAuth to test both logged-out and logged-in-as-admin states.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 11:42:20 +01:00
..
2026-03-20 22:11:39 +01:00