Skip to content

fix(render) return baseElement from render #127

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

Merged
merged 5 commits into from
Jun 27, 2018

Conversation

ehteshamkafeel
Copy link
Contributor

@ehteshamkafeel ehteshamkafeel commented Jun 27, 2018

What:
Fixes #126
Return baseElement from render

Why:
This is important to be able to test the DOM of portal components which renders outside container

How:

Return the baseElement from the render

Checklist:

  • Documentation
  • Tests
  • Ready to be merged
  • Added myself to contributors table

@kentcdodds kentcdodds merged commit cb14d2d into testing-library:master Jun 27, 2018
@kentcdodds
Copy link
Member

Thanks a bunch @ehteshamkafeel!

@kentcdodds
Copy link
Member

🎉 This PR is included in version 4.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@ehteshamkafeel
Copy link
Contributor Author

@kentcdodds looks great with your changes! Thanks

lucbpz pushed a commit to lucbpz/react-testing-library that referenced this pull request Jul 26, 2020
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 this pull request may close these issues.

Render returns empty div as container when passed a portal/modal as component
2 participants