Open chenesan opened 5 years ago
This seems related to #2114, I suspect.
Just for a note: most likely connect
from react-redux
doesn't work properly with shallow.dive
because of this issue.
Some minimal repro: https://codesandbox.io/s/old-currying-4lme5 (which seems to be similar to the skipped test above)
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