learning_ai_common_plat/packages/auth-ui/src
saravanakumardb1 9471d4c56f fix(test): add @vitest-environment happy-dom to React UI test files
6 test files across 4 packages (auth-ui, dashboard-components,
dashboard-shell, react-auth) failed with 'document is not defined'
when run from the monorepo root because the root vitest config uses
environment: 'node'. The package-local configs set happy-dom but are
ignored when vitest is invoked from root.

Fix: Add per-file '// @vitest-environment happy-dom' annotations,
which is the recommended vitest pattern for mixed-environment monorepos.
This ensures tests work regardless of which config is loaded.

Recovers 148 tests across 6 files.
2026-03-21 16:21:42 -07:00
..
__tests__ fix(test): add @vitest-environment happy-dom to React UI test files 2026-03-21 16:21:42 -07:00
AuthPageLayout.tsx feat(auth-ui): complete Auth UI Kit (3.2) — 7 new components, 54 tests 2026-03-19 20:25:57 -07:00
ForgotPasswordForm.tsx feat(auth-ui): complete Auth UI Kit (3.2) — 7 new components, 54 tests 2026-03-19 20:25:57 -07:00
index.ts feat(auth-ui): complete Auth UI Kit (3.2) — 7 new components, 54 tests 2026-03-19 20:25:57 -07:00
LoginForm.tsx feat(auth): SmartAuth SDK packages — OAuth, MFA, passkeys, devices, RS256, auth-ui 2026-03-12 10:50:56 -07:00
MfaChallenge.tsx feat(auth): SmartAuth SDK packages — OAuth, MFA, passkeys, devices, RS256, auth-ui 2026-03-12 10:50:56 -07:00
OnboardingShell.tsx feat(auth-ui): complete Auth UI Kit (3.2) — 7 new components, 54 tests 2026-03-19 20:25:57 -07:00
PasswordStrengthBar.tsx feat(auth-ui): complete Auth UI Kit (3.2) — 7 new components, 54 tests 2026-03-19 20:25:57 -07:00
RegisterForm.tsx feat(auth-ui): complete Auth UI Kit (3.2) — 7 new components, 54 tests 2026-03-19 20:25:57 -07:00
ResetPasswordForm.tsx feat(auth-ui): complete Auth UI Kit (3.2) — 7 new components, 54 tests 2026-03-19 20:25:57 -07:00
SocialButtons.tsx feat(auth): SmartAuth SDK packages — OAuth, MFA, passkeys, devices, RS256, auth-ui 2026-03-12 10:50:56 -07:00
types.ts feat(auth-ui): complete Auth UI Kit (3.2) — 7 new components, 54 tests 2026-03-19 20:25:57 -07:00
VerifyEmailForm.tsx feat(auth-ui): complete Auth UI Kit (3.2) — 7 new components, 54 tests 2026-03-19 20:25:57 -07:00