Skip to content

Commit 2758cf1

Browse files
committed
chore: update source-map-support
1 parent c791d97 commit 2758cf1

40 files changed

+309
-318
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- `[jest-core]` Fix `detectOpenHandles` false positives for some special objects such as `TLSWRAP`. ([#13414](https://github.com/facebook/jest/pull/13414))
1717
- `[jest-mock]` Fix mocking of getters and setters on classes ([#13398](https://github.com/facebook/jest/pull/13398))
1818
- `[jest-reporters]` Revert: Transform file paths into hyperlinks ([#13399](https://github.com/facebook/jest/pull/13399))
19+
- `[jest-runner]` Update `source-map-support` to get correct function name in stack traces ([#9147](https://github.com/facebook/jest/pull/9147))
1920
- `[@jest/types]` Infer type of `each` table correctly when the table is a tuple or array ([#13381](https://github.com/facebook/jest/pull/13381))
2021
- `[@jest/types]` Rework typings to allow the `*ReturnedWith` matchers to be called with no argument ([#13385](https://github.com/facebook/jest/pull/13385))
2122

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ exports[`errors when a test both returns a promise and takes a callback 1`] = `
1919
12 |
2020
13 | return Promise.resolve();
2121
22-
at Object.it (__tests__/promise-and-callback.test.js:10:1)
22+
at Object.<anonymous> (__tests__/promise-and-callback.test.js:10:1)
2323
2424
● async test with callback
2525
@@ -34,7 +34,7 @@ exports[`errors when a test both returns a promise and takes a callback 1`] = `
3434
18 | });
3535
19 |
3636
37-
at Object.it (__tests__/promise-and-callback.test.js:16:1)
37+
at Object.<anonymous> (__tests__/promise-and-callback.test.js:16:1)
3838
3939
● test done before return value
4040
@@ -49,5 +49,5 @@ exports[`errors when a test both returns a promise and takes a callback 1`] = `
4949
22 |
5050
23 | return 'foobar';
5151
52-
at Object.it (__tests__/promise-and-callback.test.js:20:1)"
52+
at Object.<anonymous> (__tests__/promise-and-callback.test.js:20:1)"
5353
`;

e2e/__tests__/__snapshots__/beforeAllFiltered.ts.snap

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,26 @@ exports[`Correct BeforeAll run ensures the BeforeAll of ignored suite is not run
44
" console.log
55
beforeAll 1
66
7-
at log (__tests__/beforeAllFiltered.test.js:10:13)
7+
at Object.<anonymous> (__tests__/beforeAllFiltered.test.js:10:13)
88
99
console.log
1010
beforeEach 1
1111
12-
at log (__tests__/beforeAllFiltered.test.js:13:13)
12+
at Object.<anonymous> (__tests__/beforeAllFiltered.test.js:13:13)
1313
1414
console.log
1515
It Foo
1616
17-
at log (__tests__/beforeAllFiltered.test.js:22:13)
17+
at Object.<anonymous> (__tests__/beforeAllFiltered.test.js:22:13)
1818
1919
console.log
2020
afterEach 1
2121
22-
at log (__tests__/beforeAllFiltered.test.js:16:13)
22+
at Object.<anonymous> (__tests__/beforeAllFiltered.test.js:16:13)
2323
2424
console.log
2525
afterAll 1
2626
27-
at log (__tests__/beforeAllFiltered.test.js:19:13)
27+
at Object.<anonymous> (__tests__/beforeAllFiltered.test.js:19:13)
2828
"
2929
`;

e2e/__tests__/__snapshots__/beforeEachQueue.ts.snap

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,26 @@ exports[`Correct beforeEach order ensures the correct order for beforeEach 1`] =
44
" console.log
55
BeforeEach
66
7-
at Object.log (__tests__/beforeEachQueue.test.js:10:13)
7+
at Object.<anonymous> (__tests__/beforeEachQueue.test.js:10:13)
88
99
console.log
1010
It Foo
1111
12-
at Object.log (__tests__/beforeEachQueue.test.js:14:13)
12+
at Object.<anonymous> (__tests__/beforeEachQueue.test.js:14:13)
1313
1414
console.log
1515
BeforeEach Inline Foo
1616
17-
at Object.log (__tests__/beforeEachQueue.test.js:17:15)
17+
at Object.<anonymous> (__tests__/beforeEachQueue.test.js:17:15)
1818
1919
console.log
2020
BeforeEach
2121
22-
at Object.log (__tests__/beforeEachQueue.test.js:10:13)
22+
at Object.<anonymous> (__tests__/beforeEachQueue.test.js:10:13)
2323
2424
console.log
2525
It Bar
2626
27-
at Object.log (__tests__/beforeEachQueue.test.js:22:13)
27+
at Object.<anonymous> (__tests__/beforeEachQueue.test.js:22:13)
2828
"
2929
`;

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ exports[`\`done()\` should not be called more than once 1`] = `
1414
12 |
1515
13 | it('should fail inside a promise', done => {
1616
17-
at Object.done (__tests__/index.test.js:10:5)
17+
at Object.<anonymous> (__tests__/index.test.js:10:5)
1818
1919
● \`done()\` called more than once › should fail inside a promise
2020
@@ -28,7 +28,7 @@ exports[`\`done()\` should not be called more than once 1`] = `
2828
19 | .catch(err => err);
2929
20 | });
3030
31-
at done (__tests__/index.test.js:17:9)
31+
at __tests__/index.test.js:17:9
3232
3333
● multiple \`done()\` inside beforeEach › should fail
3434
@@ -42,7 +42,7 @@ exports[`\`done()\` should not be called more than once 1`] = `
4242
28 |
4343
29 | it('should fail', () => {
4444
45-
at Object.done (__tests__/index.test.js:26:5)
45+
at Object.<anonymous> (__tests__/index.test.js:26:5)
4646
4747
● multiple \`done()\` inside afterEach › should fail
4848
@@ -56,7 +56,7 @@ exports[`\`done()\` should not be called more than once 1`] = `
5656
39 |
5757
40 | it('should fail', () => {
5858
59-
at Object.done (__tests__/index.test.js:37:5)
59+
at Object.<anonymous> (__tests__/index.test.js:37:5)
6060
6161
● multiple \`done()\` inside beforeAll › should fail
6262
@@ -70,7 +70,7 @@ exports[`\`done()\` should not be called more than once 1`] = `
7070
50 |
7171
51 | it('should fail', () => {
7272
73-
at Object.done (__tests__/index.test.js:48:5)
73+
at Object.<anonymous> (__tests__/index.test.js:48:5)
7474
7575
7676
● Test suite failed to run
@@ -85,5 +85,5 @@ exports[`\`done()\` should not be called more than once 1`] = `
8585
61 |
8686
62 | it('should fail', () => {
8787
88-
at Object.done (__tests__/index.test.js:59:5)"
88+
at Object.<anonymous> (__tests__/index.test.js:59:5)"
8989
`;

e2e/__tests__/__snapshots__/chaiAssertionLibrary.ts.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ exports[`chai assertion errors should display properly 1`] = `
3030
15 |
3131
16 | it('should', () => {
3232
33-
at Object.equal (__tests__/chai_assertion.js:13:35)
33+
at Object.<anonymous> (__tests__/chai_assertion.js:13:35)
3434
3535
● chai.js assertion library test › should
3636
@@ -60,7 +60,7 @@ exports[`chai assertion errors should display properly 1`] = `
6060
22 |
6161
23 | it('assert', () => {
6262
63-
at Object.equal (__tests__/chai_assertion.js:20:25)
63+
at Object.<anonymous> (__tests__/chai_assertion.js:20:25)
6464
6565
● chai.js assertion library test › assert
6666
@@ -90,5 +90,5 @@ exports[`chai assertion errors should display properly 1`] = `
9090
26 | });
9191
27 |
9292
93-
at Object.strictEqual (__tests__/chai_assertion.js:24:17)"
93+
at Object.<anonymous> (__tests__/chai_assertion.js:24:17)"
9494
`;

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ exports[`defining tests and hooks asynchronously throws 1`] = `
1717
15 | });
1818
1919
at eventHandler (../../packages/jest-circus/build/eventHandler.js:153:11)
20-
at test (__tests__/asyncDefinition.test.js:12:5)
20+
at __tests__/asyncDefinition.test.js:12:5
2121
2222
● Test suite failed to run
2323
@@ -32,7 +32,7 @@ exports[`defining tests and hooks asynchronously throws 1`] = `
3232
16 |
3333
3434
at eventHandler (../../packages/jest-circus/build/eventHandler.js:113:11)
35-
at afterAll (__tests__/asyncDefinition.test.js:13:5)
35+
at __tests__/asyncDefinition.test.js:13:5
3636
3737
● Test suite failed to run
3838
@@ -47,7 +47,7 @@ exports[`defining tests and hooks asynchronously throws 1`] = `
4747
21 |
4848
4949
at eventHandler (../../packages/jest-circus/build/eventHandler.js:153:11)
50-
at test (__tests__/asyncDefinition.test.js:18:3)
50+
at __tests__/asyncDefinition.test.js:18:3
5151
5252
● Test suite failed to run
5353
@@ -61,5 +61,5 @@ exports[`defining tests and hooks asynchronously throws 1`] = `
6161
21 |
6262
6363
at eventHandler (../../packages/jest-circus/build/eventHandler.js:113:11)
64-
at afterAll (__tests__/asyncDefinition.test.js:19:3)"
64+
at __tests__/asyncDefinition.test.js:19:3"
6565
`;

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

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ exports[`console printing 1`] = `
77
console.log
88
This is a log message.
99
10-
at Object.log (__tests__/console.test.js:10:11)
10+
at Object.<anonymous> (__tests__/console.test.js:10:11)
1111
1212
console.info
1313
This is an info message.
1414
15-
at Object.info (__tests__/console.test.js:12:11)
15+
at Object.<anonymous> (__tests__/console.test.js:12:11)
1616
1717
console.warn
1818
This is a warning message.
@@ -25,7 +25,7 @@ exports[`console printing 1`] = `
2525
16 | console.error('This is an error message.');
2626
17 | });
2727
28-
at Object.warn (__tests__/console.test.js:14:11)
28+
at Object.<anonymous> (__tests__/console.test.js:14:11)
2929
3030
console.error
3131
This is an error message.
@@ -37,7 +37,7 @@ exports[`console printing 1`] = `
3737
17 | });
3838
18 |
3939
40-
at Object.error (__tests__/console.test.js:16:11)"
40+
at Object.<anonymous> (__tests__/console.test.js:16:11)"
4141
`;
4242
4343
exports[`console printing 2`] = `
@@ -52,12 +52,12 @@ exports[`console printing with --verbose 1`] = `
5252
" console.log
5353
This is a log message.
5454
55-
at Object.log (__tests__/console.test.js:10:11)
55+
at Object.<anonymous> (__tests__/console.test.js:10:11)
5656
5757
console.info
5858
This is an info message.
5959
60-
at Object.info (__tests__/console.test.js:12:11)
60+
at Object.<anonymous> (__tests__/console.test.js:12:11)
6161
6262
console.warn
6363
This is a warning message.
@@ -70,7 +70,7 @@ exports[`console printing with --verbose 1`] = `
7070
16 | console.error('This is an error message.');
7171
17 | });
7272
73-
at Object.warn (__tests__/console.test.js:14:11)
73+
at Object.<anonymous> (__tests__/console.test.js:14:11)
7474
7575
console.error
7676
This is an error message.
@@ -82,7 +82,7 @@ exports[`console printing with --verbose 1`] = `
8282
17 | });
8383
18 |
8484
85-
at Object.error (__tests__/console.test.js:16:11)
85+
at Object.<anonymous> (__tests__/console.test.js:16:11)
8686
"
8787
`;
8888
@@ -149,22 +149,22 @@ exports[`respects --noStackTrace 1`] = `
149149
" console.log
150150
This is a log message.
151151
152-
at Object.log (__tests__/console.test.js:10:11)
152+
at Object.<anonymous> (__tests__/console.test.js:10:11)
153153
154154
console.info
155155
This is an info message.
156156
157-
at Object.info (__tests__/console.test.js:12:11)
157+
at Object.<anonymous> (__tests__/console.test.js:12:11)
158158
159159
console.warn
160160
This is a warning message.
161161
162-
at Object.warn (__tests__/console.test.js:14:11)
162+
at Object.<anonymous> (__tests__/console.test.js:14:11)
163163
164164
console.error
165165
This is an error message.
166166
167-
at Object.error (__tests__/console.test.js:16:11)
167+
at Object.<anonymous> (__tests__/console.test.js:16:11)
168168
"
169169
`;
170170
@@ -185,22 +185,22 @@ exports[`respects noStackTrace in config 1`] = `
185185
" console.log
186186
This is a log message.
187187
188-
at Object.log (__tests__/console.test.js:10:11)
188+
at Object.<anonymous> (__tests__/console.test.js:10:11)
189189
190190
console.info
191191
This is an info message.
192192
193-
at Object.info (__tests__/console.test.js:12:11)
193+
at Object.<anonymous> (__tests__/console.test.js:12:11)
194194
195195
console.warn
196196
This is a warning message.
197197
198-
at Object.warn (__tests__/console.test.js:14:11)
198+
at Object.<anonymous> (__tests__/console.test.js:14:11)
199199
200200
console.error
201201
This is an error message.
202202
203-
at Object.error (__tests__/console.test.js:16:11)
203+
at Object.<anonymous> (__tests__/console.test.js:16:11)
204204
"
205205
`;
206206

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ exports[`console debugging with --verbose 1`] = `
44
" console.log
55
test
66
7-
at Object.log (__tests__/console-debugging.test.js:17:11)
7+
at Object.<anonymous> (__tests__/console-debugging.test.js:17:11)
88
"
99
`;
1010

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ exports[`prints correct coverage report, if a TS module is transpiled by Babel t
1919
" console.log
2020
this will print
2121
22-
at log (module.ts:13:11)
22+
at covered (module.ts:13:11)
2323
2424
--------------|---------|----------|---------|---------|-------------------
2525
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
@@ -75,7 +75,7 @@ exports[`prints coverage with missing sourcemaps 1`] = `
7575
" console.log
7676
42
7777
78-
at Object.log (__tests__/Thing.test.js:10:9)
78+
at Object.<anonymous> (__tests__/Thing.test.js:10:9)
7979
8080
----------|---------|----------|---------|---------|-------------------
8181
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
@@ -90,12 +90,12 @@ exports[`reports coverage with \`resetModules\` 1`] = `
9090
" console.log
9191
this will print
9292
93-
at log (module.js:11:11)
93+
at covered (module.js:11:11)
9494
9595
console.log
9696
this will print
9797
98-
at log (module.js:11:11)
98+
at covered (module.js:11:11)
9999
100100
--------------|---------|----------|---------|---------|-------------------
101101
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s

0 commit comments

Comments
 (0)