Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update source-map-support #9147

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


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

Expand Down
6 changes: 3 additions & 3 deletions e2e/__tests__/__snapshots__/asyncAndCallback.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ exports[`errors when a test both returns a promise and takes a callback 1`] = `
12 |
13 | return Promise.resolve();

at Object.it (__tests__/promise-and-callback.test.js:10:1)
at Object.<anonymous> (__tests__/promise-and-callback.test.js:10:1)

● async test with callback

Expand All @@ -34,7 +34,7 @@ exports[`errors when a test both returns a promise and takes a callback 1`] = `
18 | });
19 |

at Object.it (__tests__/promise-and-callback.test.js:16:1)
at Object.<anonymous> (__tests__/promise-and-callback.test.js:16:1)

● test done before return value

Expand All @@ -49,5 +49,5 @@ exports[`errors when a test both returns a promise and takes a callback 1`] = `
22 |
23 | return 'foobar';

at Object.it (__tests__/promise-and-callback.test.js:20:1)"
at Object.<anonymous> (__tests__/promise-and-callback.test.js:20:1)"
`;
10 changes: 5 additions & 5 deletions e2e/__tests__/__snapshots__/beforeAllFiltered.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,26 @@ exports[`Correct BeforeAll run ensures the BeforeAll of ignored suite is not run
" console.log
beforeAll 1

at log (__tests__/beforeAllFiltered.test.js:10:13)
at Object.<anonymous> (__tests__/beforeAllFiltered.test.js:10:13)

console.log
beforeEach 1

at log (__tests__/beforeAllFiltered.test.js:13:13)
at Object.<anonymous> (__tests__/beforeAllFiltered.test.js:13:13)

console.log
It Foo

at log (__tests__/beforeAllFiltered.test.js:22:13)
at Object.<anonymous> (__tests__/beforeAllFiltered.test.js:22:13)

console.log
afterEach 1

at log (__tests__/beforeAllFiltered.test.js:16:13)
at Object.<anonymous> (__tests__/beforeAllFiltered.test.js:16:13)

console.log
afterAll 1

at log (__tests__/beforeAllFiltered.test.js:19:13)
at Object.<anonymous> (__tests__/beforeAllFiltered.test.js:19:13)
"
`;
10 changes: 5 additions & 5 deletions e2e/__tests__/__snapshots__/beforeEachQueue.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,26 @@ exports[`Correct beforeEach order ensures the correct order for beforeEach 1`] =
" console.log
BeforeEach

at Object.log (__tests__/beforeEachQueue.test.js:10:13)
at Object.<anonymous> (__tests__/beforeEachQueue.test.js:10:13)

console.log
It Foo

at Object.log (__tests__/beforeEachQueue.test.js:14:13)
at Object.<anonymous> (__tests__/beforeEachQueue.test.js:14:13)

console.log
BeforeEach Inline Foo

at Object.log (__tests__/beforeEachQueue.test.js:17:15)
at Object.<anonymous> (__tests__/beforeEachQueue.test.js:17:15)

console.log
BeforeEach

at Object.log (__tests__/beforeEachQueue.test.js:10:13)
at Object.<anonymous> (__tests__/beforeEachQueue.test.js:10:13)

console.log
It Bar

at Object.log (__tests__/beforeEachQueue.test.js:22:13)
at Object.<anonymous> (__tests__/beforeEachQueue.test.js:22:13)
"
`;
12 changes: 6 additions & 6 deletions e2e/__tests__/__snapshots__/callDoneTwice.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ exports[`\`done()\` should not be called more than once 1`] = `
12 |
13 | it('should fail inside a promise', done => {

at Object.done (__tests__/index.test.js:10:5)
at Object.<anonymous> (__tests__/index.test.js:10:5)

● \`done()\` called more than once › should fail inside a promise

Expand All @@ -28,7 +28,7 @@ exports[`\`done()\` should not be called more than once 1`] = `
19 | .catch(err => err);
20 | });

at done (__tests__/index.test.js:17:9)
at __tests__/index.test.js:17:9

● multiple \`done()\` inside beforeEach › should fail

Expand All @@ -42,7 +42,7 @@ exports[`\`done()\` should not be called more than once 1`] = `
28 |
29 | it('should fail', () => {

at Object.done (__tests__/index.test.js:26:5)
at Object.<anonymous> (__tests__/index.test.js:26:5)

● multiple \`done()\` inside afterEach › should fail

Expand All @@ -56,7 +56,7 @@ exports[`\`done()\` should not be called more than once 1`] = `
39 |
40 | it('should fail', () => {

at Object.done (__tests__/index.test.js:37:5)
at Object.<anonymous> (__tests__/index.test.js:37:5)

● multiple \`done()\` inside beforeAll › should fail

Expand All @@ -70,7 +70,7 @@ exports[`\`done()\` should not be called more than once 1`] = `
50 |
51 | it('should fail', () => {

at Object.done (__tests__/index.test.js:48:5)
at Object.<anonymous> (__tests__/index.test.js:48:5)


● Test suite failed to run
Expand All @@ -85,5 +85,5 @@ exports[`\`done()\` should not be called more than once 1`] = `
61 |
62 | it('should fail', () => {

at Object.done (__tests__/index.test.js:59:5)"
at Object.<anonymous> (__tests__/index.test.js:59:5)"
`;
6 changes: 3 additions & 3 deletions e2e/__tests__/__snapshots__/chaiAssertionLibrary.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ exports[`chai assertion errors should display properly 1`] = `
15 |
16 | it('should', () => {

at Object.equal (__tests__/chai_assertion.js:13:35)
at Object.<anonymous> (__tests__/chai_assertion.js:13:35)

● chai.js assertion library test › should

Expand Down Expand Up @@ -60,7 +60,7 @@ exports[`chai assertion errors should display properly 1`] = `
22 |
23 | it('assert', () => {

at Object.equal (__tests__/chai_assertion.js:20:25)
at Object.<anonymous> (__tests__/chai_assertion.js:20:25)

● chai.js assertion library test › assert

Expand Down Expand Up @@ -90,5 +90,5 @@ exports[`chai assertion errors should display properly 1`] = `
26 | });
27 |

at Object.strictEqual (__tests__/chai_assertion.js:24:17)"
at Object.<anonymous> (__tests__/chai_assertion.js:24:17)"
`;
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ exports[`defining tests and hooks asynchronously throws 1`] = `
15 | });

at eventHandler (../../packages/jest-circus/build/eventHandler.js:153:11)
at test (__tests__/asyncDefinition.test.js:12:5)
at __tests__/asyncDefinition.test.js:12:5

● Test suite failed to run

Expand All @@ -32,7 +32,7 @@ exports[`defining tests and hooks asynchronously throws 1`] = `
16 |

at eventHandler (../../packages/jest-circus/build/eventHandler.js:113:11)
at afterAll (__tests__/asyncDefinition.test.js:13:5)
at __tests__/asyncDefinition.test.js:13:5

● Test suite failed to run

Expand All @@ -47,7 +47,7 @@ exports[`defining tests and hooks asynchronously throws 1`] = `
21 |

at eventHandler (../../packages/jest-circus/build/eventHandler.js:153:11)
at test (__tests__/asyncDefinition.test.js:18:3)
at __tests__/asyncDefinition.test.js:18:3

● Test suite failed to run

Expand All @@ -61,5 +61,5 @@ exports[`defining tests and hooks asynchronously throws 1`] = `
21 |

at eventHandler (../../packages/jest-circus/build/eventHandler.js:113:11)
at afterAll (__tests__/asyncDefinition.test.js:19:3)"
at __tests__/asyncDefinition.test.js:19:3"
`;
32 changes: 16 additions & 16 deletions e2e/__tests__/__snapshots__/console.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ exports[`console printing 1`] = `
console.log
This is a log message.

at Object.log (__tests__/console.test.js:10:11)
at Object.<anonymous> (__tests__/console.test.js:10:11)

console.info
This is an info message.

at Object.info (__tests__/console.test.js:12:11)
at Object.<anonymous> (__tests__/console.test.js:12:11)

console.warn
This is a warning message.
Expand All @@ -25,7 +25,7 @@ exports[`console printing 1`] = `
16 | console.error('This is an error message.');
17 | });

at Object.warn (__tests__/console.test.js:14:11)
at Object.<anonymous> (__tests__/console.test.js:14:11)

console.error
This is an error message.
Expand All @@ -37,7 +37,7 @@ exports[`console printing 1`] = `
17 | });
18 |

at Object.error (__tests__/console.test.js:16:11)"
at Object.<anonymous> (__tests__/console.test.js:16:11)"
`;

exports[`console printing 2`] = `
Expand All @@ -52,12 +52,12 @@ exports[`console printing with --verbose 1`] = `
" console.log
This is a log message.

at Object.log (__tests__/console.test.js:10:11)
at Object.<anonymous> (__tests__/console.test.js:10:11)

console.info
This is an info message.

at Object.info (__tests__/console.test.js:12:11)
at Object.<anonymous> (__tests__/console.test.js:12:11)

console.warn
This is a warning message.
Expand All @@ -70,7 +70,7 @@ exports[`console printing with --verbose 1`] = `
16 | console.error('This is an error message.');
17 | });

at Object.warn (__tests__/console.test.js:14:11)
at Object.<anonymous> (__tests__/console.test.js:14:11)

console.error
This is an error message.
Expand All @@ -82,7 +82,7 @@ exports[`console printing with --verbose 1`] = `
17 | });
18 |

at Object.error (__tests__/console.test.js:16:11)
at Object.<anonymous> (__tests__/console.test.js:16:11)
"
`;

Expand Down Expand Up @@ -149,22 +149,22 @@ exports[`respects --noStackTrace 1`] = `
" console.log
This is a log message.

at Object.log (__tests__/console.test.js:10:11)
at Object.<anonymous> (__tests__/console.test.js:10:11)

console.info
This is an info message.

at Object.info (__tests__/console.test.js:12:11)
at Object.<anonymous> (__tests__/console.test.js:12:11)

console.warn
This is a warning message.

at Object.warn (__tests__/console.test.js:14:11)
at Object.<anonymous> (__tests__/console.test.js:14:11)

console.error
This is an error message.

at Object.error (__tests__/console.test.js:16:11)
at Object.<anonymous> (__tests__/console.test.js:16:11)
"
`;

Expand All @@ -185,22 +185,22 @@ exports[`respects noStackTrace in config 1`] = `
" console.log
This is a log message.

at Object.log (__tests__/console.test.js:10:11)
at Object.<anonymous> (__tests__/console.test.js:10:11)

console.info
This is an info message.

at Object.info (__tests__/console.test.js:12:11)
at Object.<anonymous> (__tests__/console.test.js:12:11)

console.warn
This is a warning message.

at Object.warn (__tests__/console.test.js:14:11)
at Object.<anonymous> (__tests__/console.test.js:14:11)

console.error
This is an error message.

at Object.error (__tests__/console.test.js:16:11)
at Object.<anonymous> (__tests__/console.test.js:16:11)
"
`;

Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/__snapshots__/consoleDebugging.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports[`console debugging with --verbose 1`] = `
" console.log
test

at Object.log (__tests__/console-debugging.test.js:17:11)
at Object.<anonymous> (__tests__/console-debugging.test.js:17:11)
"
`;

Expand Down
8 changes: 4 additions & 4 deletions e2e/__tests__/__snapshots__/coverageProviderV8.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ exports[`prints correct coverage report, if a TS module is transpiled by Babel t
" console.log
this will print

at log (module.ts:13:11)
at covered (module.ts:13:11)

--------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
Expand Down Expand Up @@ -75,7 +75,7 @@ exports[`prints coverage with missing sourcemaps 1`] = `
" console.log
42

at Object.log (__tests__/Thing.test.js:10:9)
at Object.<anonymous> (__tests__/Thing.test.js:10:9)

----------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
Expand All @@ -90,12 +90,12 @@ exports[`reports coverage with \`resetModules\` 1`] = `
" console.log
this will print

at log (module.js:11:11)
at covered (module.js:11:11)

console.log
this will print

at log (module.js:11:11)
at covered (module.js:11:11)

--------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
Expand Down
Loading