-
-
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 1-indexed JEST_WORKER_ID #8205
Conversation
packages/jest-worker/src/workers/__tests__/ChildProcessWorker.test.js
Outdated
Show resolved
Hide resolved
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
workerId
1-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