Skip to content

Commit

Permalink
Move from "process.exit" to "exit"
Browse files Browse the repository at this point in the history
This is a follow-up to jestjs#5313
  • Loading branch information
JLHwung committed Mar 19, 2019
1 parent b97ac39 commit d2ce25b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/jest-worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"main": "build/index.js",
"types": "build/index.d.ts",
"dependencies": {
"exit": "^0.1.2",
"merge-stream": "^1.0.1",
"supports-color": "^6.1.0"
},
Expand Down
6 changes: 5 additions & 1 deletion packages/jest-worker/src/workers/processChild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* LICENSE file in the root directory of this source tree.
*/

'use strict';

import exit from 'exit';

import {
CHILD_MESSAGE_CALL,
CHILD_MESSAGE_END,
Expand Down Expand Up @@ -106,7 +110,7 @@ function end(): void {
}

function exitProcess(): void {
process.exit(0);
exit(0);
}

function execMethod(method: string, args: Array<any>): void {
Expand Down

0 comments on commit d2ce25b

Please sign in to comment.