-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Rest properties are broken with Jest + node v6 #3694
Comments
Either update Node to 8.9+ or only use syntax supported by your Node version since no transformations being run against your tests code. Node versions manager to consider: |
Sounds like a bug to me; maybe we need to bump the version of |
@vinhlh looks like I misunderstood your question. Is your test file located outside |
@Timer i'd like to take this issue if no one else has. This issue happens even if the test is inside the |
All yours, @werne2j! Let me know your findings. 😄 |
@Timer i may need some help with this issue. To me, it looks like the issue is in Not sure if that is the actual issue but thats what i have seen so far |
That sounds odd @werne2j, what would a test match have to do with syntax features? 🤔 |
@Timer it shouldn't have anything to do with it. Thinking about it, i'm sure that is not the issue but i can't seem to figure out what the real issue is |
Confirmed I reproduce this on master. |
Can reproduce on |
This looks like babel/babel#7099 to me. |
Pushing this back to 2.x since it's a legit Babel bug and probably not fixable on our side. We'll need to wait for it to get resolved upstream. |
Apparently we can work around this by always including the destructuring transform. |
Fixed via #3788 |
Just ported to |
I thought I tried this but I must not have been testing it correctly. Glad you were able to get it working @gaearon! Thanks for the help! |
No problem, thanks for trying! |
This is out in |
Is this a bug report?
Might be
Environment
Steps to Reproduce
Add this test
Expected Behavior
No error
Actual Behavior
The text was updated successfully, but these errors were encountered: