fix 1-indexed JEST_WORKER_ID#8205
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8205 +/- ##
======================================
Coverage 62.3% 62.3%
======================================
Files 265 265
Lines 10473 10473
Branches 2542 2541 -1
======================================
Hits 6525 6525
Misses 3366 3366
Partials 582 582
Continue to review full report at Codecov.
|
|
doing |
|
I tried but making |
|
And 0-indexed in the pool and 1-indexed in individual workers would be way more confusing than this |
|
I wasn't afraid of it being confusing, more about duplicating logic across multiple files. But if it's used as array accessors then I agree this should be fine |
SimenB
left a comment
There was a problem hiding this comment.
Changelog, then we should be good
|
Added changelog 👍 |
* facebook/master: fix 1-indexed JEST_WORKER_ID (jestjs#8205) remove flow leftovers (jestjs#8213)
|
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
Fixes #8204
It's weird that it's 1-indexed (I looked at making our
workerId1-indexed too for consistency, but that would make our code really weird), but I guess it's documented, used to work like that and still does forrunInBand🤷♂️Test plan