learning_ai_common_plat/packages/react-auth/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
auth-context.tsx feat(react-auth): include productId in login/register request bodies 2026-03-18 20:54:20 -07:00
index.ts feat(auth): SmartAuth SDK packages — OAuth, MFA, passkeys, devices, RS256, auth-ui 2026-03-12 10:50:56 -07:00
types.ts feat(auth): add Phase 5C-5E endpoints + SDK methods — TOTP secret, push approvals, QR auth 2026-03-12 15:01:51 -07:00