2026-06-20 22:31:34 +03:00

10 lines
358 B
Markdown

# 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.