-
-
Notifications
You must be signed in to change notification settings - Fork 156
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
refactor: show error message from jest-worker #203
Conversation
Codecov Report
@@ Coverage Diff @@
## master #203 +/- ##
==========================================
+ Coverage 98.44% 98.45% +<.01%
==========================================
Files 7 7
Lines 387 388 +1
Branches 155 156 +1
==========================================
+ Hits 381 382 +1
Misses 6 6
Continue to review full report at Codecov.
|
013757b
to
16ccdd4
Compare
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.
Thanks
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.
Can we add test(s) where we can see what an error appears?
I will try |
When writing a test, I found
Change
result:
but even with If I put
I think we see this error because the process does not have enough memory and it crashes, maybe we can add some debug information to the something like this
|
In theory crash can be not only because of memory, I think we can then avoid the tests, let's just add comments to the code, why are we doing this |
c586c23
16ccdd4
to
c586c23
Compare
Changed the code from |
c586c23
to
b29d3ef
Compare
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.
Big thanks!
This PR contains a:
Motivation / Use-Case
#143 (comment)
jestjs/jest#8872 (comment)
https://github.com/facebook/jest/blob/master/packages/jest-worker/src/workers/ChildProcessWorker.ts#L93
I think these changes will help to find a problem
Breaking Changes
Nope
Additional Info