useGestures has no tests: swipe gesture handling is uncovered
Labels / Complexity: testing · Trivial — Trivial
Summary
useGestures (src/hooks/useGestures.ts) handles touch/pointer gestures (e.g., swipes) for the mobile UI. It has no tests. A regression that breaks swipe thresholds or leaks listeners ships silently in the mobile experience.
Proposal
- Add a spec covering gesture start/move/end sequences (threshold crossing) and listener cleanup.
Acceptance criteria
- The spec asserts gesture recognition for the supported sequences; it passes via
npm test.
Getting started
src/hooks/useGestures.ts — the hook
src/hooks/__tests__/useToast.test.ts — the pattern
Commands: npm test.
Good first files to read: src/hooks/useGestures.ts.
useGestures has no tests: swipe gesture handling is uncovered
Labels / Complexity: testing · Trivial — Trivial
Summary
useGestures(src/hooks/useGestures.ts) handles touch/pointer gestures (e.g., swipes) for the mobile UI. It has no tests. A regression that breaks swipe thresholds or leaks listeners ships silently in the mobile experience.Proposal
Acceptance criteria
npm test.Getting started
src/hooks/useGestures.ts— the hooksrc/hooks/__tests__/useToast.test.ts— the patternCommands:
npm test.Good first files to read:
src/hooks/useGestures.ts.