Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix flaky useFullscreen test #917

Closed
wants to merge 2 commits into from

Conversation

fredrikekelund
Copy link
Contributor

Related issues

Proposed Changes

I'm still not sure why the first test in src/hooks/tests/use-fullscreen.test.ts occassionally fails, but this simple strategy of waiting for the result to have the right value (instead of waiting for the mock to be called) seems to be effective.

Testing Instructions

Code review should suffice

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?

@fredrikekelund fredrikekelund requested a review from a team February 11, 2025 14:41
@fredrikekelund fredrikekelund self-assigned this Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant