react-native-paper
react-native-paper copied to clipboard
chore: testing library adjustments
Summary
PR introduces some adjustments according to the comment from the previously merged PR.
Test plan
Test and CI should pass.
Hey @lukewalczak, thank you for your pull request 🤗. The documentation from this branch can be viewed here.
The mobile version of example app from this branch is ready! You can see it here.
Two general suggestions:
- Try to use custom jest matchers from
@testing-library/jest-nativethese should allow you to make more high-level assertions- Gradually migrate to use
screenobject to make queries:
Thanks for the feedback, both of them make sense. I will iterate on it in the separated PRs.
EDIT:
Try to use custom jest matchers from @testing-library/jest-native these should allow you to make more high-level assertions
Included in the current PR.
The mobile version of example app from this branch is ready! You can see it here.