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

chore: ReactNative API assumptions early warning tests #1143

Merged
merged 7 commits into from
Sep 28, 2022

Conversation

mdjastrzebski
Copy link
Member

Summary

As discussed in #1139 (comment) we would benefit from set of tests that would verify our assumptions around rendering of host elements for important React Native components, especially: Text and TextInput. This PR adds such tests.

Additionally, it adds internal getHostSelf() helper function that allows for easily trading a host or composite ReactTestInstance for its host counterpart (or itself).

Test plan

Added tripwire tests
Added tests for getHostSelf()

Copy link
Member

@thymikee thymikee left a comment

Choose a reason for hiding this comment

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

Not sure about the "tripwire" naming. I'd probably go with "host edge-cases" or so, but don't mind really.

@mdjastrzebski
Copy link
Member Author

I will adjust the naming allong the lines of "API assumption" early warning test

@mdjastrzebski mdjastrzebski changed the title chore: ReactNative tripwire tests chore: ReactNative API assumptions early warning tests Sep 28, 2022
@mdjastrzebski mdjastrzebski merged commit ce54ab3 into main Sep 28, 2022
@mdjastrzebski mdjastrzebski deleted the chore/tripwire-tests branch September 28, 2022 11:51
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.

2 participants