Add unit tests for settings components and session hooks

- Implement comprehensive tests for `ProfileSettingsForm`, `PasswordChangeForm`, and `SessionCard` components to validate rendering, interactions, and state handling.
- Add tests for session management hooks (`useSession`, `useRevokeSession`, and `useRevokeAllOtherSessions`) to verify logic and API integration.
- Ensure coverage of edge cases, error handling, and success callbacks across all new tests.
This commit is contained in:
2025-11-03 00:12:59 +01:00
parent 54a14047be
commit 388ca08724
8 changed files with 1472 additions and 5 deletions

View File

@@ -98,6 +98,8 @@ export function RegisterForm({
const form = useForm<RegisterFormData>({
resolver: zodResolver(registerSchema),
mode: 'onBlur',
reValidateMode: 'onChange',
defaultValues: {
email: '',
first_name: '',