react-shallow-renderer
react-shallow-renderer copied to clipboard
Allow .contextType on class based components
Hi all,
the patch posted on https://github.com/enzymejs/enzyme/issues/2189 adds support for class based components that pass the context via .contextType. This is the part of the patch that applies to react-shallow-renderer.
@pablopalacios i've updated the PR, but there's still no tests or anything.
@ljharb I've updated my branch with the tests. I also renamed the tests that are using the legacy contextTypes
property.