Shallow API setContext should work without static contextTypes
for React 16
#1913
Open
2 of 13 tasks
Projects
According to the latest React documentation
static contextTypes
is no more needed for Context API to work - onlystatic contextType
(single form here) is needed https://reactjs.org/docs/context.html#classcontexttypeCurrent behavior
Enzyme for React 16 still requires
static contextTypes
to be defined to makesetContext()
work.Expected behavior
Enzyme for React 16 should only rely on
static contextType
.Your environment
API
Version
Adapter
The text was updated successfully, but these errors were encountered: