You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ShallowWrapper.setProps does not pass the old context to the new shallow-rendered component.
Reproducing
// 1. Use `shallow` as you would (pass `options.context`)constwrapper=shallow(<MyComponent/>,{context: 'yolo'});// 2. Run an assertionexpect(wrapper.first('div').text()).to.equal('yolo');// 3. Run `setProps`wrapper.setProps(5);// 4. Run the same assertionexpect(wrapper.first('div').text()).to.equal('yolo');
Behavior
ShallowWrapper.setProps
does not pass the old context to the new shallow-rendered component.Reproducing
Demo
The text was updated successfully, but these errors were encountered: