Skip to content

Pr/unofficially support node 6 #151

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

Conversation

terrencewwong
Copy link
Contributor

What:

Unofficially support node 6 by changing Object.entries to Object.keys

Why:

I opened a PR 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:

With code 😸

Checklist:

  • Documentation N/A
  • Tests N/A (I ran them... although not in node 6 😅 because the tests use async)
  • Ready to be merged
  • Added myself to contributors table

Copy link
Member

@kentcdodds kentcdodds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks!

@kentcdodds kentcdodds merged commit eb48038 into testing-library:master Nov 9, 2018
@kentcdodds
Copy link
Member

Thank you!

@kentcdodds
Copy link
Member

🎉 This PR is included in version 3.12.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@terrencewwong terrencewwong deleted the pr/unofficially-support-node-6 branch November 9, 2018 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants