forked from cardosofelipe/fast-next-template
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user