358 B
358 B
Tests
Common issues
Auth loading screen
Components rendered through renderWithProviders are wrapped in AuthProvider which shows
a loading screen until POST /api/v1/auth/refresh resolves.
- Use
await screen.findByText()to wait for auth to complete. - For components that don't need auth, render with just QueryClientProvider + MemoryRouter.