Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Support testing with jest and @testing-library/react-native #399

itsramiel started this conversation in General
Discussion options

Hi,

I have an app that I am building that requires bottom tabs. I want to use this library as it provides native UI and feel. One issue stopping me from doing that is that I can't seem to be able to interact with the bottom tabs from a jest test setup with @testing-library/react-native.

You can see a guide here from react navigation showing how to do that for the bottom tabs provided by react-navigation. Attempting to something like that with this library is not possible as the rendered react tree has nothing to be interacted with to trigger navigation actions.

This makes it hard to adopt this library into codebases that value tests and validation. I am hoping for a solution

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
Comment options

Couldnt make it work immediately: #400

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /