-
-
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
chore: bump TS to 3.7 #9145
chore: bump TS to 3.7 #9145
Conversation
Yeahhhhh that looks a lot like a TS bug https://circleci.com/gh/facebook/jest/73686?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link |
It looks like a regression to me... @orta? |
I had a quick look into this for my own learning, but the more I did, the more I couldn't explain it, and got sucked into; I think @jeysal might be right: this looks like it might be a bug in TS. This fixes it:
Here's a Playground Link for easy playing around :) |
Thanks @G-Rath! I'll apply the workaround locally and push 👍 |
Wait, what's the fix? |
Sorry I should have been clearer: You don't use Alternatively, doing
before the look would work too, and at least is doing something, even if it's a conditional that'll never be
I forgot that the first assignment is |
Found a tweak that was relatively clean 🤞 |
Codecov Report
@@ Coverage Diff @@
## master #9145 +/- ##
=======================================
Coverage 64.83% 64.83%
=======================================
Files 278 278
Lines 11732 11732
Branches 2882 2882
=======================================
Hits 7607 7607
Misses 3508 3508
Partials 617 617
Continue to review full report at Codecov.
|
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
3.7 is out 🎉 I haven't actually tried to run this, just opening up a PR 😀
https://devblogs.microsoft.com/typescript/announcing-typescript-3-7/
Test plan
Green CI?