Skip to content

Add integration test for useIsMobile hook returning correct value on resize #485

Description

@Chucks1093

Summary

The useIsMobile hook must update when the viewport width crosses the 768px breakpoint. An integration test should confirm the hook's return value changes correctly when the viewport is resized in both directions.

Scope

  • Render a component using useIsMobile
  • Mock viewport width at 500px and assert hook returns true
  • Resize mock to 1024px and assert hook returns false
  • Resize back to 600px and assert hook returns true again

Acceptance Criteria

  • Hook returns true below 768px
  • Hook returns false at or above 768px
  • Hook updates correctly on resize in both directions

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions