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: toBeVisible edge case for style values #1640

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

mdjastrzebski
Copy link
Member

Summary

toBeVisible() can throw error when StyleSheet.flatten() returns undefined in some edge cases. This PR allows for undefined and prevents the error.

Test plan

Added tests that triggered error.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@mdjastrzebski mdjastrzebski merged commit be31579 into main Jul 26, 2024
7 checks passed
@mdjastrzebski mdjastrzebski deleted the fix/to-be-visible-edge-case branch July 26, 2024 07:32
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.

None yet

1 participant