This repository has been archived by the owner on Apr 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Docs say ReactComponent
when it is actually ReactElement
#24
Comments
Thanks for pointing this out. I completely missed it when updating the README recently. You're right, the first parameter to these functions should be As for what is returned by |
Yep I agree the documentation sure is lacking! I was able to figure most of this out by using TypeScript ( |
Oh great! I don't use TypeScript myself but I understand it's definitions can be used with Flow. Is that right? I'll check it out, thanks. |
Looks like I was wrong but it might get implemented. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Throughout the documentation and the source it refers to input as being a
ReactComponent
, but it actually is aReactElement
.For example, the docs for
findWithType
show:With the example:
However,
renderer.getRenderOutput()
returns aReactElement
, not aReactComponent
.I found this rather confusing, since the primary issue with
ReactTestUtils
when usingShallowRenderer
is that thefind/scry
functions do not support searching aReactElement
, only aReactComponent
.The text was updated successfully, but these errors were encountered: