-
Notifications
You must be signed in to change notification settings - Fork 279
-
Using jest and @testing-library/react-native, what's the best way to assert that the a ref was passed to a view? The best I've seen is to expect(ref.current).toBeDefined()
which is very weak and does not test that it was given to the correct view.
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment