Open GhazanfarKhan opened 5 years ago
enzyme does not support, or encourage, snapshot testing. The closest we have is .debug()
.
Separately, enzyme can't work properly with react-native without a react native adapter; follow #1436 for that.
I have the same problem here with almost the same code
Another point I note; enzyme doesn't yet have a React Native adapter, so it's expected that using it with RN will have a number of issues, and this might be one of them.
I am testing my react-native app using jest and enzyme. I have this component structure.
Here is my test case
All components snapshots render correctly but my custom component Gradient Button showing this type of structure
<[object Object]/>
Due to this I am also getting this warning in console
Your environment
API
Version
Adapter