.dive()
doesn't work well with component using useContext()
#2165
Projects
.dive()
doesn't work well with component using useContext()
#2165
This issue is for closing #2011 and tracking the skipped shallow test.
Current behavior
See skipped shallow test in https://github.com/airbnb/enzyme/blob/master/packages/enzyme-test-suite/test/shared/hooks/useContext.jsx#L50-L54 . After
.dive()
call in the internal component the context value is stillinitialTitle
in.shallow()
, not the value from outer<Provider />
.Expected behavior
In that test the text value should be as same as value from outer
<Provider />
.Your environment
API
Version
Adapter
The text was updated successfully, but these errors were encountered: