-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
When testing our HOC-wrapped components, we often use the pattern of shallow-rendering one more level deep:
class MainComponent { /*...*/ };
export default connect(/*...*/)(MainComponent);const tree = shallow(<WrappedComponent/>, { context }).shallow();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?
aflatter, shamansir and borela
Metadata
Metadata
Assignees
Labels
No labels