learning_ai_common_plat/packages/react-auth
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
..
src fix(test): add @vitest-environment happy-dom to React UI test files 2026-03-21 16:21:42 -07:00
package.json test(react-auth): switch vitest env to happy-dom 2026-02-14 13:15:12 -08:00
tsconfig.json feat(react-auth): add @bytelyst/react-auth package 2026-02-12 11:22:41 -08:00
vitest.config.ts test(react-auth): switch vitest env to happy-dom 2026-02-14 13:15:12 -08:00