Trying to get Snackbar in render output.
Hey, I am trying to access Snackbar action within the test render object, I am using react-native-testing-library. I cannot get the object, it results in "No instances found" whatever I try, getByText, getByt A11Label, nothing seems to work. Did anyone have a similia problem? Am…
fireEvent.press, fireEvent arguments -> undefined
does testing-library not dispatch "real" events, or something like that? jest, react-native expo, react-router-native leads to TypeError: Cannot read property 'defaultPrevented' of undefined (this is a react-router error) …
Code Review of a Test: Testing a TextInput component
I have the following component: I would like to test the onChangeText which right now is not specifically passed to the component except than under ...props, however I see it being used on its parent component. In my test, I'm getting confused on how best to test both that the…
Need help fixing some tests. My head is a bit fried. If some one could help
So I have the following component, that I need to complete tests for, but my head is a bit fried at the moment. If someone could give me a hint. I'm using @testing-library/jest-native/extend-expect and native-testing-library. Thanks button.test.js