-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
fix: Add baseElement to render return type #151
Conversation
Actually I now think there's an inconsistency in the type definitions. The The above concern also applies to the |
I agree that |
Any ideas on when this can be merged? I wonder why the codecov task above does not finish. |
I've been having trouble with codecov's status report for a month or two. I'm not sure what the problem is and haven't had time to investigate :-/ |
🎉 This PR is included in version 4.1.6 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
No problem, good to know. Thanks! |
<!-- Thanks for your interest in the project. Bugs filed and PRs submitted are appreciated! Please make sure that you are familiar with and follow the Code of Conduct for this project (found in the CODE_OF_CONDUCT.md file). Also, please make sure you're familiar with and follow the instructions in the contributing guidelines (found in the CONTRIBUTING.md file). If you're new to contributing to open source projects, you might find this free video course helpful: http://kcd.im/pull-request Please fill out the information below to expedite the review and (hopefully) merge of your pull request! --> <!-- What changes are being made? (What feature/bug is being fixed here?) --> **What**: *Unofficially* support node 6 by changing `Object.entries` to `Object.keys` <!-- Why are these changes necessary? --> **Why**: I opened a [PR](jestjs/jest#7346) to jest that adds an example for testing with `react-testing-library`. jest runs it's test suite against node 6 (including the example I added), which is failing because of the call to `Object.entries`. Switching to `Object.keys` should make the test pass so the PR can be merged 😸 See tweet from @kentcdodds: https://twitter.com/kentcdodds/status/1060735136172466176 <!-- How were these changes implemented? --> **How**: With code 😸 <!-- Have you done all of these things? --> **Checklist**: <!-- add "N/A" to the end of each line that's irrelevant to your changes --> <!-- to check an item, place an "x" in the box like so: "- [x] Documentation" --> - [ ] Documentation N/A - [ ] Tests N/A (I ran them... although not in node 6 😅 because the tests use `async`) - [x] Ready to be merged <!-- In your opinion, is this ready to be merged as soon as it's reviewed? --> - [x] Added myself to contributors table <!-- this is optional, see the contributing guidelines for instructions --> <!-- feel free to add additional comments -->
What:
Add
baseElement
torender
return type.Why:
Because without it TypeScript code using this library won't be able to use
baseElement
, which is crucial to testing react portals, for example.How:
By adding the
baseElement
property to the type definitions.Checklist: