Skip to content

Commit 7b67ecf

Browse files
authored
chore: Update @babel/* deps (#13422)
1 parent c791d97 commit 7b67ecf

21 files changed

+123
-166
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121

2222
### Chore & Maintenance
2323

24+
- `[*]` Update `@babel/*` deps, resulting on slightly different atack traces for `each` ([#13422](https://github.com/facebook/jest/pull/13422))
25+
2426
### Performance
2527

2628
- `[jest-runner]` Do not instrument v8 coverage data if coverage should not be collected [#13282](https://github.com/facebook/jest/pull/13282)

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ exports[`defining tests and hooks asynchronously throws 1`] = `
1616
14 | });
1717
15 | });
1818
19-
at eventHandler (../../packages/jest-circus/build/eventHandler.js:153:11)
19+
at eventHandler (../../packages/jest-circus/build/eventHandler.js:134:11)
2020
at test (__tests__/asyncDefinition.test.js:12:5)
2121
2222
● Test suite failed to run
@@ -31,7 +31,7 @@ exports[`defining tests and hooks asynchronously throws 1`] = `
3131
15 | });
3232
16 |
3333
34-
at eventHandler (../../packages/jest-circus/build/eventHandler.js:113:11)
34+
at eventHandler (../../packages/jest-circus/build/eventHandler.js:97:11)
3535
at afterAll (__tests__/asyncDefinition.test.js:13:5)
3636
3737
● Test suite failed to run
@@ -46,7 +46,7 @@ exports[`defining tests and hooks asynchronously throws 1`] = `
4646
20 | });
4747
21 |
4848
49-
at eventHandler (../../packages/jest-circus/build/eventHandler.js:153:11)
49+
at eventHandler (../../packages/jest-circus/build/eventHandler.js:134:11)
5050
at test (__tests__/asyncDefinition.test.js:18:3)
5151
5252
● Test suite failed to run
@@ -60,6 +60,6 @@ exports[`defining tests and hooks asynchronously throws 1`] = `
6060
20 | });
6161
21 |
6262
63-
at eventHandler (../../packages/jest-circus/build/eventHandler.js:113:11)
63+
at eventHandler (../../packages/jest-circus/build/eventHandler.js:97:11)
6464
at afterAll (__tests__/asyncDefinition.test.js:19:3)"
6565
`;

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ exports[`prints console.logs when run with forceExit 3`] = `
2020
" console.log
2121
Hey
2222
23-
at Object.<anonymous> (__tests__/a-banana.js:1:1)
23+
at Object.<anonymous> (__tests__/a-banana.js:1:41)
2424
"
2525
`;

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ exports[`shows error message when not enough arguments are supplied to tests 1`]
6363
6 | */
6464
7 |
6565
> 8 | it.each\`
66-
| ^
66+
| ^
6767
9 | left | right
6868
10 | \${true} | \${true}
6969
11 | \${true}
7070
71-
at Object.<anonymous> (__tests__/eachException.test.js:8:1)
71+
at Object.<anonymous> (__tests__/eachException.test.js:8:9)
7272
7373
● throws exception when not enough arguments are supplied $left == $right
7474
@@ -86,12 +86,12 @@ exports[`shows error message when not enough arguments are supplied to tests 1`]
8686
17 | );
8787
18 |
8888
> 19 | it.each\`
89-
| ^
89+
| ^
9090
20 | left | right | up | down
9191
21 | \${true} | \${true}
9292
22 | \`(
9393
94-
at Object.<anonymous> (__tests__/eachException.test.js:19:1)"
94+
at Object.<anonymous> (__tests__/eachException.test.js:19:9)"
9595
`;
9696
9797
exports[`shows only the tests with .only as being ran 1`] = `

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ exports[`defaultTimeoutInterval.test.js errors in errorOnDeprecated mode 1`] = `
1111
8 |
1212
9 | test('Default Timeout Interval', () => {
1313
> 10 | jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000;
14-
| ^
14+
| ^
1515
11 | expect(true).toBe(true);
1616
12 | });
1717
13 |
1818
19-
at Object.<anonymous> (__tests__/defaultTimeoutInterval.test.js:10:3)"
19+
at Object.<anonymous> (__tests__/defaultTimeoutInterval.test.js:10:35)"
2020
`;
2121
2222
exports[`fail.test.js errors in errorOnDeprecated mode 1`] = `

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ exports[`moduleNameMapper wrong array configuration 1`] = `
4141
12 | module.exports = () => 'test';
4242
13 |
4343
44-
at createNoMappedModuleFoundError (../../packages/jest-resolve/build/resolver.js:891:17)
44+
at createNoMappedModuleFoundError (../../packages/jest-resolve/build/resolver.js:752:17)
4545
at Object.require (index.js:10:1)
4646
at Object.require (__tests__/index.js:10:20)"
4747
`;
@@ -71,7 +71,7 @@ exports[`moduleNameMapper wrong configuration 1`] = `
7171
12 | module.exports = () => 'test';
7272
13 |
7373
74-
at createNoMappedModuleFoundError (../../packages/jest-resolve/build/resolver.js:891:17)
74+
at createNoMappedModuleFoundError (../../packages/jest-resolve/build/resolver.js:752:17)
7575
at Object.require (index.js:10:1)
7676
at Object.require (__tests__/index.js:10:20)"
7777
`;

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ exports[`shows a proper error from deep requires 1`] = `
2626
12 | test('dummy', () => {
2727
13 | expect(1).toBe(1);
2828
29-
at Resolver._throwModNotFoundError (../../packages/jest-resolve/build/resolver.js:487:11)
29+
at Resolver._throwModNotFoundError (../../packages/jest-resolve/build/resolver.js:425:11)
3030
at Object.<anonymous> (node_modules/discord.js/src/index.js:21:12)
3131
at Object.require (__tests__/test.js:10:1)"
3232
`;

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ exports[`show error message with matching files 1`] = `
3737
| ^
3838
9 |
3939
40-
at Resolver._throwModNotFoundError (../../packages/jest-resolve/build/resolver.js:487:11)
40+
at Resolver._throwModNotFoundError (../../packages/jest-resolve/build/resolver.js:425:11)
4141
at Object.require (index.js:8:18)
4242
at Object.require (__tests__/test.js:8:11)"
4343
`;

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

+24-48
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,12 @@ exports[`works with all statuses 1`] = `
4141
28 | });
4242
29 |
4343
> 30 | test.failing.each([
44-
| ^
44+
| ^
4545
31 | {a: 1, b: 1, expected: 2},
4646
32 | {a: 1, b: 2, expected: 3},
4747
33 | {a: 2, b: 1, expected: 3},
4848
49-
at ../../packages/jest-each/build/bind.js:45:11
50-
at Array.forEach (<anonymous>)
51-
at Object.<anonymous> (__tests__/statuses.test.js:30:1)
49+
at Object.each (__tests__/statuses.test.js:30:14)
5250
5351
● .add(1, 2)
5452
@@ -57,14 +55,12 @@ exports[`works with all statuses 1`] = `
5755
28 | });
5856
29 |
5957
> 30 | test.failing.each([
60-
| ^
58+
| ^
6159
31 | {a: 1, b: 1, expected: 2},
6260
32 | {a: 1, b: 2, expected: 3},
6361
33 | {a: 2, b: 1, expected: 3},
6462
65-
at ../../packages/jest-each/build/bind.js:45:11
66-
at Array.forEach (<anonymous>)
67-
at Object.<anonymous> (__tests__/statuses.test.js:30:1)
63+
at Object.each (__tests__/statuses.test.js:30:14)
6864
6965
● .add(2, 1)
7066
@@ -73,14 +69,12 @@ exports[`works with all statuses 1`] = `
7369
28 | });
7470
29 |
7571
> 30 | test.failing.each([
76-
| ^
72+
| ^
7773
31 | {a: 1, b: 1, expected: 2},
7874
32 | {a: 1, b: 2, expected: 3},
7975
33 | {a: 2, b: 1, expected: 3},
8076
81-
at ../../packages/jest-each/build/bind.js:45:11
82-
at Array.forEach (<anonymous>)
83-
at Object.<anonymous> (__tests__/statuses.test.js:30:1)
77+
at Object.each (__tests__/statuses.test.js:30:14)
8478
8579
● failing passes = fails
8680
@@ -130,14 +124,12 @@ exports[`works with concurrent and only mode 1`] = `
130124
15 | });
131125
16 |
132126
> 17 | test.concurrent.only.failing.each([
133-
| ^
127+
| ^
134128
18 | {a: 1, b: 1, expected: 2},
135129
19 | {a: 1, b: 2, expected: 3},
136130
20 | {a: 2, b: 1, expected: 3},
137131
138-
at ../../packages/jest-each/build/bind.js:45:11
139-
at Array.forEach (<anonymous>)
140-
at __tests__/worksWithConcurrentOnlyMode.test.js:17:3
132+
at each (__tests__/worksWithConcurrentOnlyMode.test.js:17:32)
141133
at Object.describe (__tests__/worksWithConcurrentOnlyMode.test.js:8:1)
142134
143135
● block with concurrent › .add(1, 2)
@@ -147,14 +139,12 @@ exports[`works with concurrent and only mode 1`] = `
147139
15 | });
148140
16 |
149141
> 17 | test.concurrent.only.failing.each([
150-
| ^
142+
| ^
151143
18 | {a: 1, b: 1, expected: 2},
152144
19 | {a: 1, b: 2, expected: 3},
153145
20 | {a: 2, b: 1, expected: 3},
154146
155-
at ../../packages/jest-each/build/bind.js:45:11
156-
at Array.forEach (<anonymous>)
157-
at __tests__/worksWithConcurrentOnlyMode.test.js:17:3
147+
at each (__tests__/worksWithConcurrentOnlyMode.test.js:17:32)
158148
at Object.describe (__tests__/worksWithConcurrentOnlyMode.test.js:8:1)
159149
160150
● block with concurrent › .add(2, 1)
@@ -164,14 +154,12 @@ exports[`works with concurrent and only mode 1`] = `
164154
15 | });
165155
16 |
166156
> 17 | test.concurrent.only.failing.each([
167-
| ^
157+
| ^
168158
18 | {a: 1, b: 1, expected: 2},
169159
19 | {a: 1, b: 2, expected: 3},
170160
20 | {a: 2, b: 1, expected: 3},
171161
172-
at ../../packages/jest-each/build/bind.js:45:11
173-
at Array.forEach (<anonymous>)
174-
at __tests__/worksWithConcurrentOnlyMode.test.js:17:3
162+
at each (__tests__/worksWithConcurrentOnlyMode.test.js:17:32)
175163
at Object.describe (__tests__/worksWithConcurrentOnlyMode.test.js:8:1)"
176164
`;
177165
@@ -225,14 +213,12 @@ exports[`works with concurrent mode 1`] = `
225213
15 | });
226214
16 |
227215
> 17 | test.concurrent.failing.each([
228-
| ^
216+
| ^
229217
18 | {a: 1, b: 1, expected: 2},
230218
19 | {a: 1, b: 2, expected: 3},
231219
20 | {a: 2, b: 1, expected: 3},
232220
233-
at ../../packages/jest-each/build/bind.js:45:11
234-
at Array.forEach (<anonymous>)
235-
at __tests__/worksWithConcurrentMode.test.js:17:3
221+
at each (__tests__/worksWithConcurrentMode.test.js:17:27)
236222
at Object.describe (__tests__/worksWithConcurrentMode.test.js:8:1)
237223
238224
● block with concurrent › .add(1, 2)
@@ -242,14 +228,12 @@ exports[`works with concurrent mode 1`] = `
242228
15 | });
243229
16 |
244230
> 17 | test.concurrent.failing.each([
245-
| ^
231+
| ^
246232
18 | {a: 1, b: 1, expected: 2},
247233
19 | {a: 1, b: 2, expected: 3},
248234
20 | {a: 2, b: 1, expected: 3},
249235
250-
at ../../packages/jest-each/build/bind.js:45:11
251-
at Array.forEach (<anonymous>)
252-
at __tests__/worksWithConcurrentMode.test.js:17:3
236+
at each (__tests__/worksWithConcurrentMode.test.js:17:27)
253237
at Object.describe (__tests__/worksWithConcurrentMode.test.js:8:1)
254238
255239
● block with concurrent › .add(2, 1)
@@ -259,14 +243,12 @@ exports[`works with concurrent mode 1`] = `
259243
15 | });
260244
16 |
261245
> 17 | test.concurrent.failing.each([
262-
| ^
246+
| ^
263247
18 | {a: 1, b: 1, expected: 2},
264248
19 | {a: 1, b: 2, expected: 3},
265249
20 | {a: 2, b: 1, expected: 3},
266250
267-
at ../../packages/jest-each/build/bind.js:45:11
268-
at Array.forEach (<anonymous>)
269-
at __tests__/worksWithConcurrentMode.test.js:17:3
251+
at each (__tests__/worksWithConcurrentMode.test.js:17:27)
270252
at Object.describe (__tests__/worksWithConcurrentMode.test.js:8:1)"
271253
`;
272254
@@ -300,14 +282,12 @@ exports[`works with only mode 1`] = `
300282
13 | });
301283
14 |
302284
> 15 | it.only.failing.each([
303-
| ^
285+
| ^
304286
16 | {a: 1, b: 1, expected: 2},
305287
17 | {a: 1, b: 2, expected: 3},
306288
18 | {a: 2, b: 1, expected: 3},
307289
308-
at ../../packages/jest-each/build/bind.js:45:11
309-
at Array.forEach (<anonymous>)
310-
at __tests__/worksWithOnlyMode.test.js:15:3
290+
at each (__tests__/worksWithOnlyMode.test.js:15:19)
311291
at Object.describe (__tests__/worksWithOnlyMode.test.js:10:1)
312292
313293
● block with only, should pass › .add(1, 2)
@@ -317,14 +297,12 @@ exports[`works with only mode 1`] = `
317297
13 | });
318298
14 |
319299
> 15 | it.only.failing.each([
320-
| ^
300+
| ^
321301
16 | {a: 1, b: 1, expected: 2},
322302
17 | {a: 1, b: 2, expected: 3},
323303
18 | {a: 2, b: 1, expected: 3},
324304
325-
at ../../packages/jest-each/build/bind.js:45:11
326-
at Array.forEach (<anonymous>)
327-
at __tests__/worksWithOnlyMode.test.js:15:3
305+
at each (__tests__/worksWithOnlyMode.test.js:15:19)
328306
at Object.describe (__tests__/worksWithOnlyMode.test.js:10:1)
329307
330308
● block with only, should pass › .add(2, 1)
@@ -334,14 +312,12 @@ exports[`works with only mode 1`] = `
334312
13 | });
335313
14 |
336314
> 15 | it.only.failing.each([
337-
| ^
315+
| ^
338316
16 | {a: 1, b: 1, expected: 2},
339317
17 | {a: 1, b: 2, expected: 3},
340318
18 | {a: 2, b: 1, expected: 3},
341319
342-
at ../../packages/jest-each/build/bind.js:45:11
343-
at Array.forEach (<anonymous>)
344-
at __tests__/worksWithOnlyMode.test.js:15:3
320+
at each (__tests__/worksWithOnlyMode.test.js:15:19)
345321
at Object.describe (__tests__/worksWithOnlyMode.test.js:10:1)
346322
347323
● block with only, should fail › failing passes = fails, should fail

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ FAIL __tests__/worksWithConcurrentMode.test.js
4646
15 | });
4747
16 |
4848
49-
at Function.failing (../../packages/jest-jasmine2/build/jasmineAsyncInstall.js:195:11)
49+
at Function.failing (../../packages/jest-jasmine2/build/jasmineAsyncInstall.js:164:11)
5050
at Suite.failing (__tests__/worksWithConcurrentMode.test.js:13:17)
5151
at Object.describe (__tests__/worksWithConcurrentMode.test.js:8:1)
5252
@@ -80,7 +80,7 @@ FAIL __tests__/worksWithConcurrentOnlyMode.test.js
8080
15 | });
8181
16 |
8282
83-
at Function.failing (../../packages/jest-jasmine2/build/jasmineAsyncInstall.js:195:11)
83+
at Function.failing (../../packages/jest-jasmine2/build/jasmineAsyncInstall.js:164:11)
8484
at Suite.failing (__tests__/worksWithConcurrentOnlyMode.test.js:13:22)
8585
at Object.describe (__tests__/worksWithConcurrentOnlyMode.test.js:8:1)
8686

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ exports[`babel-jest ignored tells user to match ignored files 1`] = `
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 assertLoadedBabelConfig (../../../packages/babel-jest/build/index.js:130:11)"
9+
at assertLoadedBabelConfig (../../../packages/babel-jest/build/index.js:105:11)"
1010
`;
1111

1212
exports[`babel-jest instruments only specific files and collects coverage 1`] = `

e2e/__tests__/locationInResults.test.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ it('adds correct location info when provided with flag', () => {
4545
});
4646

4747
expect(assertions[3].location).toEqual({
48-
column: isJestJasmineRun() ? 22 : 1,
48+
column: 22,
4949
line: 23,
5050
});
5151

5252
expect(assertions[4].location).toEqual({
53-
column: isJestJasmineRun() ? 22 : 1,
53+
column: 22,
5454
line: 23,
5555
});
5656

@@ -72,12 +72,12 @@ it('adds correct location info when provided with flag', () => {
7272
});
7373

7474
expect(assertions[8].location).toEqual({
75-
column: isJestJasmineRun() ? 24 : 3,
75+
column: 24,
7676
line: 41,
7777
});
7878

7979
expect(assertions[9].location).toEqual({
80-
column: isJestJasmineRun() ? 24 : 3,
80+
column: 24,
8181
line: 41,
8282
});
8383
});

0 commit comments

Comments
 (0)