forked from cardosofelipe/fast-next-template
Add extensive form tests and enhanced error handling for auth components.
- Introduced comprehensive tests for `RegisterForm`, `PasswordResetRequestForm`, and `PasswordResetConfirmForm` covering successful submissions, validation errors, and API error handling. - Refactored forms to handle unexpected errors gracefully and improve test coverage for edge cases. - Updated `crypto` and `storage` modules with robust error handling for storage issues and encryption key management. - Removed unused `axios-mock-adapter` dependency for cleaner dependency management.
This commit is contained in:
@@ -22,6 +22,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/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
|
||||
'!src/app/**', // Next.js app directory - layout/page files (test in E2E)
|
||||
|
||||
Reference in New Issue
Block a user