Area: apps/web/src/shared/hooks/useTheme.ts
Goal: Cover theme switching and storage persistence.
Tasks:
- Test default theme, toggle, and explicit set.
- Stub
localStorage at the browser boundary.
- Assert persisted value and document attribute.
Acceptance:
- Storage mock is reset after each test.
bun run --cwd apps/web test passes.
Area:
apps/web/src/shared/hooks/useTheme.tsGoal: Cover theme switching and storage persistence.
Tasks:
localStorageat the browser boundary.Acceptance:
bun run --cwd apps/web testpasses.