mirror of
https://github.com/jhbruhn/respira.git
synced 2026-01-27 10:23:41 +00:00
Add tests for all hooks with @testing-library/react: - utility hooks: usePrevious, useAutoScroll, useClickOutside - domain hooks: useErrorPopoverState, useMachinePolling - platform hooks: useBluetoothDeviceListener Changes: - Install @testing-library/react and jsdom for React hook testing - Configure vitest to use jsdom environment for React testing - Add 91 tests covering all hook functionality - Test state management, effects, event listeners, and async behavior - Verify proper cleanup and edge cases All tests passing. Coverage includes error states, polling intervals, click-outside detection, auto-scroll behavior, and IPC integration. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| components | ||
| data | ||
| formats | ||
| hooks | ||
| lib | ||
| platform | ||
| services | ||
| stores | ||
| types | ||
| utils | ||
| App.css | ||
| App.tsx | ||
| index.css | ||
| main.tsx | ||
| vite-env.d.ts | ||