File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
packages/jest-worker/src/workers Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 105105 - Adds a ` conditional/check ` to ensure the argument passed to ` expect ` is an object.
106106 - Add unit tests for new ` ObjectContaining ` behavior.
107107 - Remove ` invalid/wrong ` test case assertions for ` ObjectContaining ` .
108+ - ` [jest-worker] ` Addresses incorrect state on exit ([ #15610 ] ( https://github.com/jestjs/jest/pull/15610 ) )
108109
109110### Performance
110111
Original file line number Diff line number Diff line change @@ -233,7 +233,8 @@ export default class ChildProcessWorker
233233 ) {
234234 if (
235235 this . state === WorkerStates . OK ||
236- this . state === WorkerStates . STARTING
236+ this . state === WorkerStates . STARTING ||
237+ this . state === WorkerStates . SHUT_DOWN
237238 ) {
238239 this . state = WorkerStates . OUT_OF_MEMORY ;
239240 }
Original file line number Diff line number Diff line change @@ -125,8 +125,7 @@ export default abstract class WorkerAbstract
125125 * killed off.
126126 */
127127 protected _shutdown ( ) : void {
128- // eslint-disable-next-line @typescript-eslint/no-unused-expressions
129- this . state === WorkerStates . SHUT_DOWN ;
128+ this . state = WorkerStates . SHUT_DOWN ;
130129
131130 // End the permanent stream so the merged stream end too
132131 if ( this . _fakeStream ) {
You can’t perform that action at this time.
0 commit comments