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
ljharb
changed the title
A nested ForwarRef is not recognized as a valid component by shallow dive()
A nested ForwardRef is not recognized as a valid component by shallow dive()
Sep 21, 2018
- [fix] `shallow`: A nested ForwardRef is not recognized as a valid component by `dive()`
- [enzyme-adapter-react-{16,16.3}] [new] add `isCustomComponentElement`
Fixes#1830.
Describe the bug
A nested ForwardRef is not recognized as a valid component when I do shallow dive() to it.
To Reproduce
Steps to reproduce the behavior:
<ForwardRef(HOCOne(Component)) />
TypeError: ShallowWrapper::dive() can only be called on components
Expected behavior
A ForwardRef component must be recognized as such and it must be possible to do dive () on it.
Desktop:
The text was updated successfully, but these errors were encountered: