Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return found component instead of root #6

Open
kirill-konshin opened this issue Dec 6, 2017 · 0 comments
Open

Return found component instead of root #6

kirill-konshin opened this issue Dec 6, 2017 · 0 comments

Comments

@kirill-konshin
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant