Skip to content

Commit 2076548

Browse files
authored
chore: replace exit with exit-x (#15399)
1 parent afc0cfb commit 2076548

File tree

16 files changed

+22
-40
lines changed

16 files changed

+22
-40
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252

5353
### Fixes
5454

55+
- `[*]` Replace `exit` with `exit-x` ([#15399](https://github.com/jestjs/jest/pull/15399))
5556
- `[babel-plugin-jest-hoist]` Use `denylist` instead of the deprecated `blacklist` for Babel 8 support ([#14109](https://github.com/jestjs/jest/pull/14109))
5657
- `[babel-plugin-jest-hoist]` Do not rely on buggy Babel behaviour ([#15415](https://github.com/jestjs/jest/pull/15415))
5758
- `[expect]` Check error instance type for `toThrow/toThrowError` ([#14576](https://github.com/jestjs/jest/pull/14576))

packages/create-jest/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"dependencies": {
2525
"@jest/types": "workspace:*",
2626
"chalk": "^4.0.0",
27-
"exit": "^0.1.2",
27+
"exit-x": "^0.2.2",
2828
"graceful-fs": "^4.2.9",
2929
"jest-config": "workspace:*",
3030
"jest-util": "workspace:*",
@@ -37,7 +37,6 @@
3737
"access": "public"
3838
},
3939
"devDependencies": {
40-
"@types/exit": "^0.1.30",
4140
"@types/graceful-fs": "^4.1.3",
4241
"@types/prompts": "^2.0.1"
4342
}

packages/create-jest/src/runCreate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import * as path from 'path';
99
import chalk = require('chalk');
10-
import exit = require('exit');
10+
import exit = require('exit-x');
1111
import * as fs from 'graceful-fs';
1212
import prompts = require('prompts');
1313
import {constants} from 'jest-config';

packages/jest-cli/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,14 @@
1919
"@jest/test-result": "workspace:*",
2020
"@jest/types": "workspace:*",
2121
"chalk": "^4.0.0",
22-
"exit": "^0.1.2",
22+
"exit-x": "^0.2.2",
2323
"import-local": "^3.0.2",
2424
"jest-config": "workspace:*",
2525
"jest-util": "workspace:*",
2626
"jest-validate": "workspace:*",
2727
"yargs": "^17.3.1"
2828
},
2929
"devDependencies": {
30-
"@types/exit": "^0.1.30",
3130
"@types/yargs": "^17.0.8"
3231
},
3332
"peerDependencies": {

packages/jest-cli/src/run.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import * as path from 'path';
99
import chalk = require('chalk');
10-
import exit = require('exit');
10+
import exit = require('exit-x');
1111
import yargs = require('yargs');
1212
import {getVersion, runCLI} from '@jest/core';
1313
import type {AggregatedResult} from '@jest/test-result';

packages/jest-core/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"ansi-escapes": "^4.2.1",
2525
"chalk": "^4.0.0",
2626
"ci-info": "^4.0.0",
27-
"exit": "^0.1.2",
27+
"exit-x": "^0.2.2",
2828
"graceful-fs": "^4.2.9",
2929
"jest-changed-files": "workspace:*",
3030
"jest-config": "workspace:*",
@@ -47,7 +47,6 @@
4747
"devDependencies": {
4848
"@jest/test-sequencer": "workspace:*",
4949
"@jest/test-utils": "workspace:*",
50-
"@types/exit": "^0.1.30",
5150
"@types/graceful-fs": "^4.1.3",
5251
"@types/micromatch": "^4.0.7"
5352
},

packages/jest-core/src/TestScheduler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import chalk = require('chalk');
99
import {GITHUB_ACTIONS} from 'ci-info';
10-
import exit = require('exit');
10+
import exit = require('exit-x');
1111
import {
1212
CoverageReporter,
1313
DefaultReporter,

packages/jest-core/src/cli/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import {performance} from 'perf_hooks';
99
import type {WriteStream} from 'tty';
1010
import chalk = require('chalk');
11-
import exit = require('exit');
11+
import exit = require('exit-x');
1212
import * as fs from 'graceful-fs';
1313
import {CustomConsole} from '@jest/console';
1414
import type {AggregatedResult, TestContext} from '@jest/test-result';

packages/jest-core/src/runJest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import * as path from 'path';
99
import {performance} from 'perf_hooks';
1010
import type {WriteStream} from 'tty';
1111
import chalk = require('chalk');
12-
import exit = require('exit');
12+
import exit = require('exit-x');
1313
import * as fs from 'graceful-fs';
1414
import {CustomConsole} from '@jest/console';
1515
import {

packages/jest-core/src/watch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import * as path from 'path';
99
import type {WriteStream} from 'tty';
1010
import ansiEscapes = require('ansi-escapes');
1111
import chalk = require('chalk');
12-
import exit = require('exit');
12+
import exit = require('exit-x');
1313
import slash = require('slash');
1414
import {TestPathPatterns} from '@jest/pattern';
1515
import type {TestContext} from '@jest/test-result';

0 commit comments

Comments
 (0)