-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Child context for shallow rendering API #567
Comments
From the same discussion:
|
Yep, that was the comment, but there is the need for establishing child context if you're rendering child nodes (through calling |
Highly related to #664. |
Fixed in #664. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When testing our HOC-wrapped components, we often use the pattern of shallow-rendering one more level deep:
The problem is that the child context is not being propagated, so when the inner component is rendered, its context is missing.
I see that a
childContextTypes
option was provided when doing a full render here: #171, but shouldn't we have the same thing for shallow rendering?The text was updated successfully, but these errors were encountered: