Skip to content

Commit

Permalink
chore: update source-map-support
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed May 6, 2022
1 parent 755e84b commit 76b4d07
Show file tree
Hide file tree
Showing 38 changed files with 210 additions and 218 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -4,6 +4,8 @@

### Fixes

- `[jest-runner]` Update `source-map-support` to get correct function name in stack traces ([#9147](https://github.com/facebook/jest/pull/9147))

### Chore & Maintenance

### Performance
Expand Down
6 changes: 3 additions & 3 deletions e2e/__tests__/__snapshots__/asyncAndCallback.test.ts.snap
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
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
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
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
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)"
`;
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
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
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
4 changes: 2 additions & 2 deletions e2e/__tests__/__snapshots__/coverageProviderV8.test.ts.snap
Expand Up @@ -50,7 +50,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 All @@ -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 Down

0 comments on commit 76b4d07

Please sign in to comment.