Return found component instead of root
Opened this issue · 0 comments
kirill-konshin commented
https://github.com/etiennedi/enzyme-wait/blob/master/src/index.js#L35
const targetComponent = rootComponent.find(selector);
if (targetComponent.length) {
clearInterval(intervalId);
return resolve(targetComponent);
}
It would be very convenient to return a found component.