Skip to content

Add tests for useDeviceOrientation hook - #949

Merged
nanaf6203-bit merged 1 commit into
MettaChain:mainfrom
Gracora:fix/issue-890-use-device-orientation-tests
Aug 26, 2026
Merged

nanaf6203-bit merged 1 commit into
MettaChain:mainfrom
Gracora:fix/issue-890-use-device-orientation-tests

Conversation

@Gracora

@Gracora Gracora commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Added test coverage for the useDeviceOrientation hook that handles device motion sensors.

Changes

  • Tests for device support detection
  • Tests for iOS permission request flow
  • Tests for non-iOS automatic permission
  • Tests for orientation data updates
  • Tests for event listener lifecycle

Closes #825
Closes #826
Closes #827
Closes #828

@nanaf6203-bit nanaf6203-bit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work, thanks for getting this over the line!

@nanaf6203-bit
nanaf6203-bit merged commit da29f76 into MettaChain:main Aug 26, 2026
2 of 5 checks passed
@github-actions

Copy link
Copy Markdown

🔒 Preview Environment Destroyed

The preview environment for this PR has been torn down.

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