-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Remove auto-inclusion of babel-polyfill #2755
Conversation
ab40e3b
to
dfa62df
Compare
Are you sure this should go in examples? |
Huh, didn't notice that warning, thanks! Fallback to use |
581f442
to
53abc96
Compare
So.. this means regeneratorRuntime will be missing… :( |
Hm, so why this passes locally on all node versions? |
Can you wipe away all the node modules folders in examples folders and re-run yarn test? |
Removed couple of times from async example. Now tried again but for all examples and it fails indeed 😄 Fixed by importing |
I don't think that's great; I would expect a lot of people are using regeneratorRuntime. The alternative is to force people to compile async to generator (instead of async to generator to regenerator) but we'd need to make it so that this works in the CLI without breaking anybody or by suggesting how to do it from the CLI. |
This may be tricky, because lots of folks out there are using Not sure how to make it better. |
Codecov Report
@@ Coverage Diff @@
## master #2755 +/- ##
==========================================
+ Coverage 68.07% 68.16% +0.09%
==========================================
Files 147 147
Lines 5347 5347
==========================================
+ Hits 3640 3645 +5
+ Misses 1707 1702 -5
Continue to review full report at Codecov.
|
So maybe we could replace |
Yeah I think that would solve most use-cases. Everything in babel-polyfill is basically already in node4+. |
7b57fcf
to
940df38
Compare
Is there a reason why Travis seems to segfault a lot for this project? |
For sure there is, but we don't know why it happens and it's only on node 4 |
Oh wow this is odd. Honestly, I thought I merged this into Jest 19. @thymikee mind rebasing so CI runs again? |
1573225
to
cd4c41e
Compare
Rebased |
What does including |
Provides a runtime for generators. You also need a babel transform. There's a tutorial on Jest documentation |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
Drop auto-including of
babel-polyfill
if available. Fixes #2693Test plan
jest