/** * View Data Layer Tests - Auth Functionality * * This test file will cover the view data layer for auth functionality. * * The view data layer is responsible for: * - DTO → UI model mapping * - Formatting, sorting, and grouping * - Derived fields and defaults * - UI-specific semantics * * This layer isolates the UI from API churn by providing a stable interface * between the API layer and the presentation layer. * * Test coverage will include: * - Login form data transformation and validation * - Signup form view models and field formatting * - Forgot password flow data handling * - Reset password token validation and UI state * - Auth error message formatting and display * - User session data mapping for UI components * - Derived auth state fields (isAuthenticated, authStatus, etc.) * - Default values and fallbacks for auth views * - Auth-specific formatting (password strength, email validation, etc.) */