learning_ai_common_plat/packages/auth-ui
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 feat(auth): SmartAuth SDK packages — OAuth, MFA, passkeys, devices, RS256, auth-ui 2026-03-12 10:50:56 -07:00
tsconfig.json feat(auth): SmartAuth SDK packages — OAuth, MFA, passkeys, devices, RS256, auth-ui 2026-03-12 10:50:56 -07:00
vitest.config.ts feat(auth): SmartAuth SDK packages — OAuth, MFA, passkeys, devices, RS256, auth-ui 2026-03-12 10:50:56 -07:00