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 Nov 5, 2018
1 parent 9812e1b commit bdee03e
Show file tree
Hide file tree
Showing 2 changed files with 4 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 @@ -8,6 +8,7 @@
"license": "MIT",
"main": "build/index.js",
"dependencies": {
"exit": "^0.1.2",
"merge-stream": "^1.0.1"
},
"engines": {
Expand Down
4 changes: 3 additions & 1 deletion packages/jest-worker/src/child.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

'use strict';

import exit from 'exit';

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

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

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

0 comments on commit bdee03e

Please sign in to comment.