Skip to content

chore: ReactNative API assumptions early warning tests - #1143

Merged
mdjastrzebski merged 7 commits into
mainfrom
chore/tripwire-tests
Sep 28, 2022
Merged

chore: ReactNative API assumptions early warning tests#1143
mdjastrzebski merged 7 commits into
mainfrom
chore/tripwire-tests

Conversation

@mdjastrzebski

Copy link
Copy Markdown
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()

@thymikee thymikee left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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