learning_ai_common_plat/packages/react-auth/src/__tests__
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
..
react-auth.test.tsx fix(test): add @vitest-environment happy-dom to React UI test files 2026-03-21 16:21:42 -07:00
smartauth.test.tsx fix(test): add @vitest-environment happy-dom to React UI test files 2026-03-21 16:21:42 -07:00