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
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
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/f unction (for composite components) but got: object.
Your environment
API
[-] shallow
mount
render
Version
library
version
enzyme
^3.10.0
react
16.8.3
react-dom
react-test-renderer
adapter (below)
Adapter
[-] enzyme-adapter-react-16
enzyme-adapter-react-16.3
enzyme-adapter-react-16.2
enzyme-adapter-react-16.1
enzyme-adapter-react-15
enzyme-adapter-react-15.4
enzyme-adapter-react-14
enzyme-adapter-react-13
enzyme-adapter-react-helper
others ( )
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: