Open seyaobey-dev opened 2 years ago
Any solution for this problem? I'm having the same issue.
I'm facing a close issue,
,
The Icons should be the first Text element on this screen.debug snapshot, what I found weird is that the props testID is been not passed to the element.
A workaround but with limitations is: expect(screen.UNSAFE_getByType(MaterialIcons)).toBeOnTheScreen() but it has problems with multiple instances.
I’m getting this error when I run my test (jest, jest-expo, testing-library/react-native):
The error seems to come from expo vector icons. I believe I have correctly setup my tests:
And here is my component under test:
Please help me look at this issue: I've been looking for a solution for more than a month, across the net (stackoverflow) and various forums (discord).