Skip to content

useGestures has no tests: swipe gesture handling is uncovered #889

Description

@nanaf6203-bit

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave programTrivialtestingTest coverage or test reliability

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions