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
describe('Parent test',()=>{it('should return a parent that can find things',()=>{classMockComponentextendsReact.Component{render(){return(<divclassName="container"><divclassName="foo">Some foo</div><divclassName="bar">Some bar</div></div>);}}constwrapper=shallow(<MockComponent/>);// The following passes on v3expect(wrapper.find('.foo').parents().find('.bar')).toExist();// The following fails on v3 but passes on v2expect(wrapper.find('.foo').parent().find('.bar')).toExist();});});
Current behavior
Expected behavior
The following use case should pass:
Your environment
API
Version
Adapter
The text was updated successfully, but these errors were encountered: