Add tests for auth storage logic and i18n routing configuration

- Added comprehensive unit tests for `auth/storage` to handle SSR, E2E paths, storage method selection, and error handling.
- Introduced tests for `i18n/routing` to validate locale configuration, navigation hooks, and link preservation.
- Updated Jest coverage exclusions to include `
This commit is contained in:
Felipe Cardoso
2025-11-20 09:24:15 +01:00
parent bb06b450fd
commit 0105e765b3
4 changed files with 178 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ const customJestConfig = {
'!src/**/*.stories.{js,jsx,ts,tsx}',
'!src/**/__tests__/**',
'!src/lib/api/generated/**', // Auto-generated API client - do not test
'!src/lib/api/client-config.ts', // Integration glue for generated client - covered by E2E
'!src/lib/api/hooks/**', // React Query hooks - tested in E2E (require API mocking)
'!src/**/*.old.{js,jsx,ts,tsx}', // Old implementation files
'!src/components/ui/**', // shadcn/ui components - third-party, no need to test