From a730535020ac1c512f2d1a8c4a571f4bbb2231a2 Mon Sep 17 00:00:00 2001 From: Tim Seckinger Date: Sat, 30 Mar 2019 16:46:54 +0100 Subject: [PATCH] do not shut down for exit codes > 128 other than 137 & 143 --- packages/jest-worker/src/workers/ChildProcessWorker.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/jest-worker/src/workers/ChildProcessWorker.ts b/packages/jest-worker/src/workers/ChildProcessWorker.ts index 9dee77c03751..11cf61a760c8 100644 --- a/packages/jest-worker/src/workers/ChildProcessWorker.ts +++ b/packages/jest-worker/src/workers/ChildProcessWorker.ts @@ -198,7 +198,8 @@ export default class ChildProcessWorker implements WorkerInterface { private _onExit(exitCode: number) { if ( exitCode !== 0 && - exitCode <= 128 // importantly, do not reinitialize for 137 (SIGKILL) or 143 (SIGTERM) + exitCode !== 137 && // SIGKILL + exitCode !== 143 // SIGTERM ) { this.initialize();