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
alexander-akait
left a comment
There was a problem hiding this comment.
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
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