You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.
I've tried different methods and rendering functions, it only can find/traverse to TouchableOpacity element, but not children inside it? Is it a problem of react-native-mock or enzyme?
Any ideas on how to test this component?
The text was updated successfully, but these errors were encountered:
Well, somehow it works for <View> elements, you can wrap TextInput with <View> (with multiple levels) and the whole pack will be rendered by the shallow function.
Can it just reuse the same logic for TouchableOpacity (and similar advanced containers)? For the tests it will be useful to "see through" those system elements...
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm trying to test a simple component, where some areas are wrapped with
I've tried different methods and rendering functions, it only can find/traverse to
TouchableOpacity
element, but not children inside it? Is it a problem of react-native-mock or enzyme?Any ideas on how to test this component?
The text was updated successfully, but these errors were encountered: