diff --git a/packages/jest-worker/src/workers/ChildProcessWorker.ts b/packages/jest-worker/src/workers/ChildProcessWorker.ts index 6b7daa4758f2..8c3e13bccd38 100644 --- a/packages/jest-worker/src/workers/ChildProcessWorker.ts +++ b/packages/jest-worker/src/workers/ChildProcessWorker.ts @@ -205,6 +205,7 @@ export default class ChildProcessWorker implements WorkerInterface { private _onExit(exitCode: number) { if ( exitCode !== 0 && + exitCode !== null && exitCode !== SIGTERM_EXIT_CODE && exitCode !== SIGKILL_EXIT_CODE ) { @@ -236,7 +237,7 @@ export default class ChildProcessWorker implements WorkerInterface { this._request = request; this._retries = 0; - this._child.send(request); + this._child.send(request, () => {}); } waitForExit(): Promise {