Skip to content

Commit ff9269b

Browse files
committed
chore: bump most dated deps (#8850)
1 parent 7594141 commit ff9269b

File tree

49 files changed

+1379
-1637
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1379
-1637
lines changed

e2e/Utils.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,22 @@ import * as fs from 'fs';
1010
import * as path from 'path';
1111
import {Config} from '@jest/types';
1212

13-
import {ExecaReturns, sync as spawnSync} from 'execa';
13+
// eslint-disable-next-line import/named
14+
import {ExecaReturnValue, sync as spawnSync} from 'execa';
1415
import {createDirectory} from 'jest-util';
1516
import rimraf from 'rimraf';
1617

17-
export type RunResult = ExecaReturns & {
18+
interface RunResult extends ExecaReturnValue {
1819
status: number;
1920
error: Error;
20-
};
21+
}
2122
export const run = (cmd: string, cwd?: Config.Path): RunResult => {
2223
const args = cmd.split(/\s/).slice(1);
2324
const spawnOptions = {cwd, preferLocal: false, reject: false};
2425
const result = spawnSync(cmd.split(/\s/)[0], args, spawnOptions) as RunResult;
2526

2627
// For compat with cross-spawn
27-
result.status = result.code;
28+
result.status = result.exitCode;
2829

2930
if (result.status !== 0) {
3031
const message = `

e2e/__tests__/__snapshots__/coverageThreshold.test.ts.snap

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ All files | 50 | 100 | 50 | 50 | |
2323
apple.js | 0 | 100 | 0 | 0 | 2,3 |
2424
banana.js | 100 | 100 | 100 | 100 | |
2525
-----------|----------|----------|----------|----------|-------------------|
26-
2726
`;
2827
2928
exports[`exits with 0 if global threshold group is not found in coverage data: stdout 1`] = `
@@ -57,7 +56,6 @@ File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
5756
All files | 50 | 100 | 0 | 50 | |
5857
not-covered.js | 50 | 100 | 0 | 50 | 3 |
5958
----------------|----------|----------|----------|----------|-------------------|
60-
6159
`;
6260
6361
exports[`exits with 1 if path threshold group is not found in coverage data 1`] = `
@@ -82,7 +80,6 @@ File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
8280
All files | 100 | 100 | 100 | 100 | |
8381
banana.js | 100 | 100 | 100 | 100 | |
8482
-----------|----------|----------|----------|----------|-------------------|
85-
8683
`;
8784
8885
exports[`file is matched by all path and glob threshold groups 1`] = `
@@ -109,5 +106,4 @@ File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
109106
All files | 50 | 100 | 0 | 50 | |
110107
banana.js | 50 | 100 | 0 | 50 | 3 |
111108
-----------|----------|----------|----------|----------|-------------------|
112-
113109
`;

e2e/__tests__/__snapshots__/customReporters.test.ts.snap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ exports[`Custom Reporters Integration invalid format for adding reporters 1`] =
117117
Configuration Documentation:
118118
https://jestjs.io/docs/configuration.html
119119
120-
121120
`;
122121
123122
exports[`Custom Reporters Integration valid array format for adding reporters 1`] = `

e2e/__tests__/__snapshots__/jestChangedFiles.test.ts.snap

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ exports[`handles a bad revision for "changedSince", for git 1`] = `
77
88
fatal: bad revision '^blablabla'
99
10-
1110
`;
1211

1312
exports[`handles a bad revision for "changedSince", for hg 1`] = `
@@ -17,5 +16,4 @@ exports[`handles a bad revision for "changedSince", for hg 1`] = `
1716
1817
abort: unknown revision 'blablabla'!
1918
20-
2119
`;

e2e/__tests__/__snapshots__/processExit.test.ts.snap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ exports[`prints stack trace pointing to process.exit call 1`] = `
1212
11 | expect(true).toBe(true);
1313
1414
at Object.exit (__tests__/test.js:8:9)
15-
1615
`;

e2e/__tests__/__snapshots__/resolveNoFileExtensions.test.ts.snap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ exports[`show error message when no js moduleFileExtensions 1`] = `
1111
Configuration Documentation:
1212
https://jestjs.io/docs/configuration.html
1313
14-
1514
`;
1615

1716
exports[`show error message with matching files 1`] = `

e2e/__tests__/__snapshots__/transform.test.ts.snap

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ FAIL __tests__/ignoredFile.test.js
66
77
babel-jest: Babel ignores __tests__/ignoredFile.test.js - make sure to include the file in Jest's transformIgnorePatterns as well.
88
9-
at loadBabelConfig (../../../packages/babel-jest/build/index.js:157:13)
9+
at loadBabelConfig (../../../packages/babel-jest/build/index.js:174:13)
1010
`;
1111

1212
exports[`babel-jest instruments only specific files and collects coverage 1`] = `
@@ -33,7 +33,6 @@ File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
3333
All files | 83.33 | 100 | 50 | 80 | |
3434
covered.js | 83.33 | 100 | 50 | 80 | 13 |
3535
------------|----------|----------|----------|----------|-------------------|
36-
3736
`;
3837

3938
exports[`transformer-config instruments only specific files and collects coverage 1`] = `

e2e/__tests__/processExit.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
import {wrap} from 'jest-snapshot-serializer-raw';
99
import runJest from '../runJest';
1010

11-
it('prints stack trace pointing to process.exit call', async () => {
12-
const {stderr} = await runJest('process-exit');
11+
it('prints stack trace pointing to process.exit call', () => {
12+
const {stderr} = runJest('process-exit');
1313

1414
expect(wrap(stderr)).toMatchSnapshot();
1515
});

e2e/__tests__/supportsDashedArgs.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,14 @@ test('throws error for unknown dashed & camelcase args', () => {
4545
'--useStderr',
4646
]);
4747
expect(result.stderr).toMatchInlineSnapshot(`
48-
● Unrecognized CLI Parameters:
48+
● Unrecognized CLI Parameters:
4949
50-
Following options were not recognized:
51-
["doesNotExist", "also-does-not-exist"]
50+
Following options were not recognized:
51+
["doesNotExist", "also-does-not-exist"]
5252
53-
CLI Options Documentation:
54-
https://jestjs.io/docs/en/cli.html
53+
CLI Options Documentation:
54+
https://jestjs.io/docs/en/cli.html
5555
56-
57-
`);
56+
`);
5857
expect(result.status).toBe(1);
5958
});

e2e/__tests__/testRetries.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe('Test Retries', () => {
2727
it('retries failed tests', () => {
2828
const result = runJest('test-retries', ['e2e.test.js']);
2929

30-
expect(result.code).toEqual(0);
30+
expect(result.status).toEqual(0);
3131
expect(result.failed).toBe(false);
3232
});
3333

0 commit comments

Comments
 (0)