-
-
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
Fix to have length guard #9796
Fix to have length guard #9796
Conversation
Codecov Report
@@ Coverage Diff @@
## master #9796 +/- ##
=======================================
Coverage 64.87% 64.87%
=======================================
Files 288 288
Lines 12206 12206
Branches 3023 3025 +2
=======================================
Hits 7919 7919
Misses 3646 3646
Partials 641 641
Continue to review full report at Codecov.
|
Thanks! 😃 |
Run `npm update`. Manually bump jest version. There are some security updates to try and apply. Somewhere recently jest broke `toHaveLength` which will be fixed in next release (see jestjs/jest#9796), so update test to check length directly.
Thanks indeed! |
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
If it isn't broke, don't fix it.
I reverted back to the original guard since the type hasn't changed and it was an ugly nest of conditions.
Test plan
Added a new test case.
fixes #9792