diff --git a/CHANGELOG.md b/CHANGELOG.md index 76a9f07e2a78..02c7f5041160 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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)) diff --git a/e2e/__tests__/__snapshots__/asyncAndCallback.test.ts.snap b/e2e/__tests__/__snapshots__/asyncAndCallback.test.ts.snap index 5fbda79530a2..b4b48016bb8a 100644 --- a/e2e/__tests__/__snapshots__/asyncAndCallback.test.ts.snap +++ b/e2e/__tests__/__snapshots__/asyncAndCallback.test.ts.snap @@ -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. (__tests__/promise-and-callback.test.js:10:1) ● async test with callback @@ -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. (__tests__/promise-and-callback.test.js:16:1) ● test done before return value @@ -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. (__tests__/promise-and-callback.test.js:20:1)" `; diff --git a/e2e/__tests__/__snapshots__/beforeAllFiltered.ts.snap b/e2e/__tests__/__snapshots__/beforeAllFiltered.ts.snap index f77440c7da5c..9faadcf6e865 100644 --- a/e2e/__tests__/__snapshots__/beforeAllFiltered.ts.snap +++ b/e2e/__tests__/__snapshots__/beforeAllFiltered.ts.snap @@ -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. (__tests__/beforeAllFiltered.test.js:10:13) console.log beforeEach 1 - at log (__tests__/beforeAllFiltered.test.js:13:13) + at Object. (__tests__/beforeAllFiltered.test.js:13:13) console.log It Foo - at log (__tests__/beforeAllFiltered.test.js:22:13) + at Object. (__tests__/beforeAllFiltered.test.js:22:13) console.log afterEach 1 - at log (__tests__/beforeAllFiltered.test.js:16:13) + at Object. (__tests__/beforeAllFiltered.test.js:16:13) console.log afterAll 1 - at log (__tests__/beforeAllFiltered.test.js:19:13) + at Object. (__tests__/beforeAllFiltered.test.js:19:13) " `; diff --git a/e2e/__tests__/__snapshots__/beforeEachQueue.ts.snap b/e2e/__tests__/__snapshots__/beforeEachQueue.ts.snap index a5efe65c502d..f94623499dad 100644 --- a/e2e/__tests__/__snapshots__/beforeEachQueue.ts.snap +++ b/e2e/__tests__/__snapshots__/beforeEachQueue.ts.snap @@ -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. (__tests__/beforeEachQueue.test.js:10:13) console.log It Foo - at Object.log (__tests__/beforeEachQueue.test.js:14:13) + at Object. (__tests__/beforeEachQueue.test.js:14:13) console.log BeforeEach Inline Foo - at Object.log (__tests__/beforeEachQueue.test.js:17:15) + at Object. (__tests__/beforeEachQueue.test.js:17:15) console.log BeforeEach - at Object.log (__tests__/beforeEachQueue.test.js:10:13) + at Object. (__tests__/beforeEachQueue.test.js:10:13) console.log It Bar - at Object.log (__tests__/beforeEachQueue.test.js:22:13) + at Object. (__tests__/beforeEachQueue.test.js:22:13) " `; diff --git a/e2e/__tests__/__snapshots__/callDoneTwice.test.ts.snap b/e2e/__tests__/__snapshots__/callDoneTwice.test.ts.snap index b735f4d03853..5bec3a05ae15 100644 --- a/e2e/__tests__/__snapshots__/callDoneTwice.test.ts.snap +++ b/e2e/__tests__/__snapshots__/callDoneTwice.test.ts.snap @@ -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. (__tests__/index.test.js:10:5) ● \`done()\` called more than once › should fail inside a promise @@ -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 @@ -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. (__tests__/index.test.js:26:5) ● multiple \`done()\` inside afterEach › should fail @@ -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. (__tests__/index.test.js:37:5) ● multiple \`done()\` inside beforeAll › should fail @@ -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. (__tests__/index.test.js:48:5) ● Test suite failed to run @@ -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. (__tests__/index.test.js:59:5)" `; diff --git a/e2e/__tests__/__snapshots__/chaiAssertionLibrary.ts.snap b/e2e/__tests__/__snapshots__/chaiAssertionLibrary.ts.snap index 922938b4a50d..08b3999893bb 100644 --- a/e2e/__tests__/__snapshots__/chaiAssertionLibrary.ts.snap +++ b/e2e/__tests__/__snapshots__/chaiAssertionLibrary.ts.snap @@ -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. (__tests__/chai_assertion.js:13:35) ● chai.js assertion library test › should @@ -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. (__tests__/chai_assertion.js:20:25) ● chai.js assertion library test › assert @@ -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. (__tests__/chai_assertion.js:24:17)" `; diff --git a/e2e/__tests__/__snapshots__/circusDeclarationErrors.test.ts.snap b/e2e/__tests__/__snapshots__/circusDeclarationErrors.test.ts.snap index d541ca6e6fbe..185e29218bcc 100644 --- a/e2e/__tests__/__snapshots__/circusDeclarationErrors.test.ts.snap +++ b/e2e/__tests__/__snapshots__/circusDeclarationErrors.test.ts.snap @@ -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 @@ -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 @@ -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 @@ -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" `; diff --git a/e2e/__tests__/__snapshots__/console.test.ts.snap b/e2e/__tests__/__snapshots__/console.test.ts.snap index 849933bd86c4..07a5a6e19c74 100644 --- a/e2e/__tests__/__snapshots__/console.test.ts.snap +++ b/e2e/__tests__/__snapshots__/console.test.ts.snap @@ -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. (__tests__/console.test.js:10:11) console.info This is an info message. - at Object.info (__tests__/console.test.js:12:11) + at Object. (__tests__/console.test.js:12:11) console.warn This is a warning message. @@ -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. (__tests__/console.test.js:14:11) console.error This is an error message. @@ -37,7 +37,7 @@ exports[`console printing 1`] = ` 17 | }); 18 | - at Object.error (__tests__/console.test.js:16:11)" + at Object. (__tests__/console.test.js:16:11)" `; exports[`console printing 2`] = ` @@ -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. (__tests__/console.test.js:10:11) console.info This is an info message. - at Object.info (__tests__/console.test.js:12:11) + at Object. (__tests__/console.test.js:12:11) console.warn This is a warning message. @@ -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. (__tests__/console.test.js:14:11) console.error This is an error message. @@ -82,7 +82,7 @@ exports[`console printing with --verbose 1`] = ` 17 | }); 18 | - at Object.error (__tests__/console.test.js:16:11) + at Object. (__tests__/console.test.js:16:11) " `; @@ -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. (__tests__/console.test.js:10:11) console.info This is an info message. - at Object.info (__tests__/console.test.js:12:11) + at Object. (__tests__/console.test.js:12:11) console.warn This is a warning message. - at Object.warn (__tests__/console.test.js:14:11) + at Object. (__tests__/console.test.js:14:11) console.error This is an error message. - at Object.error (__tests__/console.test.js:16:11) + at Object. (__tests__/console.test.js:16:11) " `; @@ -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. (__tests__/console.test.js:10:11) console.info This is an info message. - at Object.info (__tests__/console.test.js:12:11) + at Object. (__tests__/console.test.js:12:11) console.warn This is a warning message. - at Object.warn (__tests__/console.test.js:14:11) + at Object. (__tests__/console.test.js:14:11) console.error This is an error message. - at Object.error (__tests__/console.test.js:16:11) + at Object. (__tests__/console.test.js:16:11) " `; diff --git a/e2e/__tests__/__snapshots__/consoleDebugging.test.ts.snap b/e2e/__tests__/__snapshots__/consoleDebugging.test.ts.snap index 4bc14067c0cf..1b23cf12addf 100644 --- a/e2e/__tests__/__snapshots__/consoleDebugging.test.ts.snap +++ b/e2e/__tests__/__snapshots__/consoleDebugging.test.ts.snap @@ -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. (__tests__/console-debugging.test.js:17:11) " `; diff --git a/e2e/__tests__/__snapshots__/coverageProviderV8.test.ts.snap b/e2e/__tests__/__snapshots__/coverageProviderV8.test.ts.snap index f24e97dce582..8bfecdc534ac 100644 --- a/e2e/__tests__/__snapshots__/coverageProviderV8.test.ts.snap +++ b/e2e/__tests__/__snapshots__/coverageProviderV8.test.ts.snap @@ -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 @@ -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. (__tests__/Thing.test.js:10:9) ----------|---------|----------|---------|---------|------------------- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s @@ -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 diff --git a/e2e/__tests__/__snapshots__/customInlineSnapshotMatchers.test.ts.snap b/e2e/__tests__/__snapshots__/customInlineSnapshotMatchers.test.ts.snap index 42e0de014d00..78bab3a97553 100644 --- a/e2e/__tests__/__snapshots__/customInlineSnapshotMatchers.test.ts.snap +++ b/e2e/__tests__/__snapshots__/customInlineSnapshotMatchers.test.ts.snap @@ -21,7 +21,7 @@ exports[`can bail with a custom inline snapshot matcher 1`] = ` 32 | expect(state).toMatchStateInlineSnapshot(\`"done"\`); 33 | }); - at Object.toMatchStateInlineSnapshot (__tests__/bail.test.js:30:17) + at Object. (__tests__/bail.test.js:30:17) › 1 snapshot failed. Snapshot Summary @@ -53,7 +53,7 @@ exports[`works with custom inline snapshot matchers 1`] = ` 24 | }); 25 | - at Object.toMatchObservationInlineSnapshot (__tests__/asynchronous.test.js:22:41) + at Object. (__tests__/asynchronous.test.js:22:41) ● new async, inline snapshots @@ -75,7 +75,7 @@ exports[`works with custom inline snapshot matchers 1`] = ` 25 | 26 | test('mismatching async, inline snapshots', async () => { - at Object.toMatchObservationInlineSnapshot (__tests__/asynchronous.test.js:23:41) + at Object. (__tests__/asynchronous.test.js:23:41) ● mismatching async, inline snapshots @@ -94,7 +94,7 @@ exports[`works with custom inline snapshot matchers 1`] = ` 29 | ); 30 | await expect(async () => 'result #2').toMatchObservationInlineSnapshot( - at Object.toMatchObservationInlineSnapshot (__tests__/asynchronous.test.js:27:41) + at Object. (__tests__/asynchronous.test.js:27:41) ● mismatching async, inline snapshots @@ -113,7 +113,7 @@ exports[`works with custom inline snapshot matchers 1`] = ` 32 | ); 33 | }); - at Object.toMatchObservationInlineSnapshot (__tests__/asynchronous.test.js:30:41) + at Object. (__tests__/asynchronous.test.js:30:41) › 4 snapshots failed. Snapshot Summary diff --git a/e2e/__tests__/__snapshots__/customMatcherStackTrace.test.ts.snap b/e2e/__tests__/__snapshots__/customMatcherStackTrace.test.ts.snap index 563d3d74599e..0abe52f61af6 100644 --- a/e2e/__tests__/__snapshots__/customMatcherStackTrace.test.ts.snap +++ b/e2e/__tests__/__snapshots__/customMatcherStackTrace.test.ts.snap @@ -16,7 +16,7 @@ exports[`custom async matchers 1`] = ` 13 | function toThrowCustomAsyncMatcherError() { 14 | const message = () => - at Object.toThrowCustomAsyncMatcherError (__tests__/asynchronous.test.js:11:16)" + at Object. (__tests__/asynchronous.test.js:11:16)" `; exports[`works with custom matchers 1`] = ` @@ -38,10 +38,10 @@ exports[`works with custom matchers 1`] = ` 47 | 48 | // This expecation fails due to an error we throw (intentionally) - at Error (__tests__/sync.test.js:45:13) - at baz (__tests__/sync.test.js:43:23) - at bar (__tests__/sync.test.js:42:23) - at foo (__tests__/sync.test.js:52:7) - at Object.callback (__tests__/sync.test.js:11:18) - at Object.toCustomMatch (__tests__/sync.test.js:53:8)" + at baz (__tests__/sync.test.js:45:13) + at bar (__tests__/sync.test.js:43:23) + at foo (__tests__/sync.test.js:42:23) + at callback (__tests__/sync.test.js:52:7) + at Object.toCustomMatch (__tests__/sync.test.js:11:18) + at Object. (__tests__/sync.test.js:53:8)" `; diff --git a/e2e/__tests__/__snapshots__/declarationErrors.test.ts.snap b/e2e/__tests__/__snapshots__/declarationErrors.test.ts.snap index 3990f96002bf..54bfb70f0056 100644 --- a/e2e/__tests__/__snapshots__/declarationErrors.test.ts.snap +++ b/e2e/__tests__/__snapshots__/declarationErrors.test.ts.snap @@ -11,7 +11,7 @@ exports[`errors if describe returns a Promise 1`] = ` 13 | return Promise.resolve(); 14 | }); - at Object.describe (__tests__/describeReturnPromise.test.js:11:1)" + at Object. (__tests__/describeReturnPromise.test.js:11:1)" `; exports[`errors if describe returns something 1`] = ` @@ -25,5 +25,5 @@ exports[`errors if describe returns something 1`] = ` 13 | return 42; 14 | }); - at Object.describe (__tests__/describeReturnSomething.test.js:11:1)" + at Object. (__tests__/describeReturnSomething.test.js:11:1)" `; diff --git a/e2e/__tests__/__snapshots__/detectOpenHandles.ts.snap b/e2e/__tests__/__snapshots__/detectOpenHandles.ts.snap index c6f4f2ec3518..d77d747b4f6c 100644 --- a/e2e/__tests__/__snapshots__/detectOpenHandles.ts.snap +++ b/e2e/__tests__/__snapshots__/detectOpenHandles.ts.snap @@ -21,8 +21,8 @@ exports[`prints out info about open handlers 1`] = ` | ^ 15 | - at Object.listen (server.js:14:5) - at Object.require (__tests__/outside.js:8:1)" + at Object. (server.js:14:5) + at Object. (__tests__/outside.js:8:1)" `; exports[`prints out info about open handlers from inside tests 1`] = ` @@ -38,7 +38,7 @@ exports[`prints out info about open handlers from inside tests 1`] = ` 11 | }); 12 | - at Object.setTimeout (__tests__/inside.js:9:3)" + at Object. (__tests__/inside.js:9:3)" `; exports[`prints out info about open handlers from lifecycle functions with a \`done\` callback 1`] = ` @@ -54,7 +54,7 @@ exports[`prints out info about open handlers from lifecycle functions with a \`d 11 | }); 12 | - at setTimeout (__tests__/in-done-lifecycle.js:9:3)" + at Object. (__tests__/in-done-lifecycle.js:9:3)" `; exports[`prints out info about open handlers from tests with a \`done\` callback 1`] = ` @@ -70,5 +70,5 @@ exports[`prints out info about open handlers from tests with a \`done\` callback 11 | done(); 12 | }); - at Object.setTimeout (__tests__/in-done-function.js:9:3)" + at Object. (__tests__/in-done-function.js:9:3)" `; diff --git a/e2e/__tests__/__snapshots__/domDiffing.test.ts.snap b/e2e/__tests__/__snapshots__/domDiffing.test.ts.snap index d137c76c46ae..f63cbaace23d 100644 --- a/e2e/__tests__/__snapshots__/domDiffing.test.ts.snap +++ b/e2e/__tests__/__snapshots__/domDiffing.test.ts.snap @@ -22,7 +22,7 @@ exports[`should work without error 1`] = ` 16 | 17 | test('compare span and div', () => { - at Object.toBe (__tests__/dom.test.js:14:16) + at Object. (__tests__/dom.test.js:14:16) ● compare span and div @@ -41,7 +41,7 @@ exports[`should work without error 1`] = ` 19 | }); 20 | - at Object.toBe (__tests__/dom.test.js:18:41) + at Object. (__tests__/dom.test.js:18:41) Test Suites: 1 failed, 1 total Tests: 2 failed, 2 total diff --git a/e2e/__tests__/__snapshots__/each.test.ts.snap b/e2e/__tests__/__snapshots__/each.test.ts.snap index cd99de4520bb..d750ee4c178f 100644 --- a/e2e/__tests__/__snapshots__/each.test.ts.snap +++ b/e2e/__tests__/__snapshots__/each.test.ts.snap @@ -158,7 +158,7 @@ exports[`shows the correct errors in stderr when failing tests 1`] = ` 14 | 15 | it.each([ - at toBe (__tests__/failure.test.js:12:16) + at __tests__/failure.test.js:12:16 ● array table fails on all rows expected 1 == 2 @@ -175,7 +175,7 @@ exports[`shows the correct errors in stderr when failing tests 1`] = ` 21 | 22 | it.each\` - at toBe (__tests__/failure.test.js:19:16) + at __tests__/failure.test.js:19:16 ● array table fails on all rows expected 3 == 4 @@ -192,7 +192,7 @@ exports[`shows the correct errors in stderr when failing tests 1`] = ` 21 | 22 | it.each\` - at toBe (__tests__/failure.test.js:19:16) + at __tests__/failure.test.js:19:16 ● template table fails on one row expected: true == false @@ -209,7 +209,7 @@ exports[`shows the correct errors in stderr when failing tests 1`] = ` 31 | ); 32 | - at toBe (__tests__/failure.test.js:29:18) + at __tests__/failure.test.js:29:18 ● template table fails on all rows expected: 1 == 2 @@ -226,7 +226,7 @@ exports[`shows the correct errors in stderr when failing tests 1`] = ` 42 | ); 43 | - at toBe (__tests__/failure.test.js:40:18) + at __tests__/failure.test.js:40:18 ● template table fails on all rows expected: 3 == 4 @@ -243,7 +243,7 @@ exports[`shows the correct errors in stderr when failing tests 1`] = ` 42 | ); 43 | - at toBe (__tests__/failure.test.js:40:18) + at __tests__/failure.test.js:40:18 ● The word red contains the letter 'z' @@ -260,7 +260,7 @@ exports[`shows the correct errors in stderr when failing tests 1`] = ` 49 | ); 50 | - at toBe (__tests__/failure.test.js:47:28) + at __tests__/failure.test.js:47:28 ● The word green contains the letter 'z' @@ -277,7 +277,7 @@ exports[`shows the correct errors in stderr when failing tests 1`] = ` 49 | ); 50 | - at toBe (__tests__/failure.test.js:47:28) + at __tests__/failure.test.js:47:28 ● The word bean contains the letter 'z' @@ -294,7 +294,7 @@ exports[`shows the correct errors in stderr when failing tests 1`] = ` 49 | ); 50 | - at toBe (__tests__/failure.test.js:47:28) + at __tests__/failure.test.js:47:28 ● template table describe fails on all rows expected "a" == "b" › fails @@ -311,7 +311,7 @@ exports[`shows the correct errors in stderr when failing tests 1`] = ` 61 | }, 62 | ); - at Object.toBe (__tests__/failure.test.js:59:20) + at Object. (__tests__/failure.test.js:59:20) ● template table describe fails on all rows expected "c" == "d" › fails @@ -328,7 +328,7 @@ exports[`shows the correct errors in stderr when failing tests 1`] = ` 61 | }, 62 | ); - at Object.toBe (__tests__/failure.test.js:59:20) + at Object. (__tests__/failure.test.js:59:20) ● array table describe fails on all rows expected a == b › fails @@ -345,7 +345,7 @@ exports[`shows the correct errors in stderr when failing tests 1`] = ` 73 | }, 74 | ); - at Object.toBe (__tests__/failure.test.js:71:20) + at Object. (__tests__/failure.test.js:71:20) ● array table describe fails on all rows expected c == d › fails @@ -362,5 +362,5 @@ exports[`shows the correct errors in stderr when failing tests 1`] = ` 73 | }, 74 | ); - at Object.toBe (__tests__/failure.test.js:71:20)" + at Object. (__tests__/failure.test.js:71:20)" `; diff --git a/e2e/__tests__/__snapshots__/emptyDescribeWithHooks.test.ts.snap b/e2e/__tests__/__snapshots__/emptyDescribeWithHooks.test.ts.snap index ad2f6318c6ed..9bff6ce85b4f 100644 --- a/e2e/__tests__/__snapshots__/emptyDescribeWithHooks.test.ts.snap +++ b/e2e/__tests__/__snapshots__/emptyDescribeWithHooks.test.ts.snap @@ -28,8 +28,8 @@ Object { 11 | 12 | describe('another block with tests', () => { - at beforeEach (__tests__/hookInEmptyDescribe.test.js:9:3) - at Object.describe (__tests__/hookInEmptyDescribe.test.js:8:1)", + at __tests__/hookInEmptyDescribe.test.js:9:3 + at Object. (__tests__/hookInEmptyDescribe.test.js:8:1)", "summary": "Test Suites: 1 failed, 1 total Tests: 1 passed, 1 total Snapshots: 0 total @@ -55,8 +55,8 @@ Object { 11 | }); 12 | - at beforeEach (__tests__/hookInEmptyNestedDescribe.test.js:9:3) - at Object.describe (__tests__/hookInEmptyNestedDescribe.test.js:8:1)", + at __tests__/hookInEmptyNestedDescribe.test.js:9:3 + at Object. (__tests__/hookInEmptyNestedDescribe.test.js:8:1)", "summary": "Test Suites: 1 failed, 1 total Tests: 1 passed, 1 total Snapshots: 0 total @@ -82,8 +82,8 @@ Object { 11 | afterAll(() => {}); 12 | beforeAll(() => {}); - at beforeEach (__tests__/multipleHooksInEmptyDescribe.test.js:9:3) - at Object.describe (__tests__/multipleHooksInEmptyDescribe.test.js:8:1) + at __tests__/multipleHooksInEmptyDescribe.test.js:9:3 + at Object. (__tests__/multipleHooksInEmptyDescribe.test.js:8:1) ● Test suite failed to run @@ -97,8 +97,8 @@ Object { 12 | beforeAll(() => {}); 13 | }); - at afterEach (__tests__/multipleHooksInEmptyDescribe.test.js:10:3) - at Object.describe (__tests__/multipleHooksInEmptyDescribe.test.js:8:1) + at __tests__/multipleHooksInEmptyDescribe.test.js:10:3 + at Object. (__tests__/multipleHooksInEmptyDescribe.test.js:8:1) ● Test suite failed to run @@ -112,8 +112,8 @@ Object { 13 | }); 14 | - at afterAll (__tests__/multipleHooksInEmptyDescribe.test.js:11:3) - at Object.describe (__tests__/multipleHooksInEmptyDescribe.test.js:8:1) + at __tests__/multipleHooksInEmptyDescribe.test.js:11:3 + at Object. (__tests__/multipleHooksInEmptyDescribe.test.js:8:1) ● Test suite failed to run @@ -127,8 +127,8 @@ Object { 14 | 15 | describe('another block with tests', () => { - at beforeAll (__tests__/multipleHooksInEmptyDescribe.test.js:12:3) - at Object.describe (__tests__/multipleHooksInEmptyDescribe.test.js:8:1)", + at __tests__/multipleHooksInEmptyDescribe.test.js:12:3 + at Object. (__tests__/multipleHooksInEmptyDescribe.test.js:8:1)", "summary": "Test Suites: 1 failed, 1 total Tests: 1 passed, 1 total Snapshots: 0 total diff --git a/e2e/__tests__/__snapshots__/errorOnDeprecated.test.ts.snap b/e2e/__tests__/__snapshots__/errorOnDeprecated.test.ts.snap index 8c4a72d95339..8d1faa1f8f94 100644 --- a/e2e/__tests__/__snapshots__/errorOnDeprecated.test.ts.snap +++ b/e2e/__tests__/__snapshots__/errorOnDeprecated.test.ts.snap @@ -11,12 +11,12 @@ exports[`defaultTimeoutInterval.test.js errors in errorOnDeprecated mode 1`] = ` 8 | 9 | test('Default Timeout Interval', () => { > 10 | jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000; - | ^ + | ^ 11 | expect(true).toBe(true); 12 | }); 13 | - at Object. (__tests__/defaultTimeoutInterval.test.js:10:3)" + at Object. (__tests__/defaultTimeoutInterval.test.js:10:35)" `; exports[`fail.test.js errors in errorOnDeprecated mode 1`] = ` @@ -35,7 +35,7 @@ exports[`fail.test.js errors in errorOnDeprecated mode 1`] = ` 13 | }); 14 | - at Object.fail (__tests__/fail.test.js:11:5)" + at Object. (__tests__/fail.test.js:11:5)" `; exports[`jasmine.addMatchers.test.js errors in errorOnDeprecated mode 1`] = ` @@ -52,7 +52,7 @@ exports[`jasmine.addMatchers.test.js errors in errorOnDeprecated mode 1`] = ` 11 | compare: (actual, expected) => ({ 12 | message: 'Nobdy expects the Spanish Inquisition!', - at Object.addMatchers (__tests__/jasmine.addMatchers.test.js:9:9)" + at Object. (__tests__/jasmine.addMatchers.test.js:9:9)" `; exports[`jasmine.any.test.js errors in errorOnDeprecated mode 1`] = ` @@ -70,7 +70,7 @@ exports[`jasmine.any.test.js errors in errorOnDeprecated mode 1`] = ` 11 | }); 12 | - at Object.any (__tests__/jasmine.any.test.js:10:51)" + at Object. (__tests__/jasmine.any.test.js:10:51)" `; exports[`jasmine.anything.test.js errors in errorOnDeprecated mode 1`] = ` @@ -88,7 +88,7 @@ exports[`jasmine.anything.test.js errors in errorOnDeprecated mode 1`] = ` 11 | }); 12 | - at Object.anything (__tests__/jasmine.anything.test.js:10:62)" + at Object. (__tests__/jasmine.anything.test.js:10:62)" `; exports[`jasmine.arrayContaining.test.js errors in errorOnDeprecated mode 1`] = ` @@ -106,7 +106,7 @@ exports[`jasmine.arrayContaining.test.js errors in errorOnDeprecated mode 1`] = 11 | }); 12 | - at Object.arrayContaining (__tests__/jasmine.arrayContaining.test.js:10:45)" + at Object. (__tests__/jasmine.arrayContaining.test.js:10:45)" `; exports[`jasmine.createSpy.test.js errors in errorOnDeprecated mode 1`] = ` @@ -125,7 +125,7 @@ exports[`jasmine.createSpy.test.js errors in errorOnDeprecated mode 1`] = ` 12 | expect(mySpy).toHaveBeenCalledWith('hello?'); 13 | }); - at Object.createSpy (__tests__/jasmine.createSpy.test.js:10:25)" + at Object. (__tests__/jasmine.createSpy.test.js:10:25)" `; exports[`jasmine.objectContaining.test.js errors in errorOnDeprecated mode 1`] = ` @@ -144,7 +144,7 @@ exports[`jasmine.objectContaining.test.js errors in errorOnDeprecated mode 1`] = 13 | }); 14 | - at Object.objectContaining (__tests__/jasmine.objectContaining.test.js:11:13)" + at Object. (__tests__/jasmine.objectContaining.test.js:11:13)" `; exports[`jasmine.stringMatching.test.js errors in errorOnDeprecated mode 1`] = ` @@ -162,7 +162,7 @@ exports[`jasmine.stringMatching.test.js errors in errorOnDeprecated mode 1`] = ` 11 | }); 12 | - at Object.stringMatching (__tests__/jasmine.stringMatching.test.js:10:50)" + at Object. (__tests__/jasmine.stringMatching.test.js:10:50)" `; exports[`pending.test.js errors in errorOnDeprecated mode 1`] = ` @@ -181,7 +181,7 @@ exports[`pending.test.js errors in errorOnDeprecated mode 1`] = ` 13 | expect(false).toBe(true); 14 | }); - at Object.pending (__tests__/pending.test.js:11:5)" + at Object. (__tests__/pending.test.js:11:5)" `; exports[`spyOn.test.js errors in errorOnDeprecated mode 1`] = ` @@ -200,7 +200,7 @@ exports[`spyOn.test.js errors in errorOnDeprecated mode 1`] = ` 17 | }); 18 | - at Object.spyOn (__tests__/spyOn.test.js:15:3)" + at Object. (__tests__/spyOn.test.js:15:3)" `; exports[`spyOnProperty.test.js errors in errorOnDeprecated mode 1`] = ` @@ -219,5 +219,5 @@ exports[`spyOnProperty.test.js errors in errorOnDeprecated mode 1`] = ` 26 | obj.method(); 27 | - at Object.spyOnProperty (__tests__/spyOnProperty.test.js:24:15)" + at Object. (__tests__/spyOnProperty.test.js:24:15)" `; diff --git a/e2e/__tests__/__snapshots__/expectAsyncMatcher.test.ts.snap b/e2e/__tests__/__snapshots__/expectAsyncMatcher.test.ts.snap index fbafcfaa2d73..2dfe197b5e56 100644 --- a/e2e/__tests__/__snapshots__/expectAsyncMatcher.test.ts.snap +++ b/e2e/__tests__/__snapshots__/expectAsyncMatcher.test.ts.snap @@ -24,7 +24,7 @@ exports[`shows the correct errors in stderr when failing tests 1`] = ` 15 | it('fail with expected non promise values and not', () => 16 | expect([1, 2]).not.toHaveLengthAsync(Promise.resolve(2))); - at Object.toHaveLengthAsync (__tests__/failure.test.js:13:15) + at Object. (__tests__/failure.test.js:13:15) ● fail with expected non promise values and not @@ -43,7 +43,7 @@ exports[`shows the correct errors in stderr when failing tests 1`] = ` 18 | it('fail with expected promise values', () => 19 | expect(Promise.resolve([1])).resolves.toHaveLengthAsync(Promise.resolve(2))); - at Object.toHaveLengthAsync (__tests__/failure.test.js:16:22) + at Object. (__tests__/failure.test.js:16:22) ● fail with expected promise values @@ -62,7 +62,7 @@ exports[`shows the correct errors in stderr when failing tests 1`] = ` 21 | it('fail with expected promise values and not', () => 22 | expect(Promise.resolve([1, 2])).resolves.not.toHaveLengthAsync( - at Object.toHaveLengthAsync (__tests__/failure.test.js:19:41) + at Object. (__tests__/failure.test.js:19:41) ● fail with expected promise values and not @@ -81,5 +81,5 @@ exports[`shows the correct errors in stderr when failing tests 1`] = ` 24 | )); 25 | - at Object.toHaveLengthAsync (__tests__/failure.test.js:22:48)" + at Object. (__tests__/failure.test.js:22:48)" `; diff --git a/e2e/__tests__/__snapshots__/failures.test.ts.snap b/e2e/__tests__/__snapshots__/failures.test.ts.snap index 4e71842dc24b..72e90a3c90fe 100644 --- a/e2e/__tests__/__snapshots__/failures.test.ts.snap +++ b/e2e/__tests__/__snapshots__/failures.test.ts.snap @@ -44,7 +44,7 @@ exports[`not throwing Error objects 4`] = ` 14 | const redeclare = () => { 15 | expect.assertions(1); - at Object.toBeTruthy (__tests__/assertionCount.test.js:12:17) + at Object.throws (__tests__/assertionCount.test.js:12:17) ● .assertions() › throws @@ -60,7 +60,7 @@ exports[`not throwing Error objects 4`] = ` 13 | }; 14 | const redeclare = () => { - at Object.assertions (__tests__/assertionCount.test.js:11:10) + at Object.throws (__tests__/assertionCount.test.js:11:10) ● .assertions() › throws on redeclare of assertion count @@ -76,7 +76,7 @@ exports[`not throwing Error objects 4`] = ` 18 | }; 19 | - at Object.toBeTruthy (__tests__/assertionCount.test.js:16:17) + at Object.redeclare (__tests__/assertionCount.test.js:16:17) ● .assertions() › throws on assertion @@ -92,7 +92,7 @@ exports[`not throwing Error objects 4`] = ` 23 | }; 24 | - at Object.assertions (__tests__/assertionCount.test.js:21:10) + at Object.noAssertions (__tests__/assertionCount.test.js:21:10) ● .hasAssertions() › throws when there are not assertions @@ -108,7 +108,7 @@ exports[`not throwing Error objects 4`] = ` 28 | 29 | describe('.assertions()', () => { - at Object.hasAssertions (__tests__/assertionCount.test.js:26:10)" + at Object.hasNoAssertions (__tests__/assertionCount.test.js:26:10)" `; exports[`not throwing Error objects 5`] = ` @@ -135,7 +135,7 @@ exports[`not throwing Error objects 5`] = ` 16 | }); 17 | - at Object.test (__tests__/duringTests.test.js:14:1) + at Object. (__tests__/duringTests.test.js:14:1) ● Boolean thrown during test @@ -149,7 +149,7 @@ exports[`not throwing Error objects 5`] = ` 20 | throw false; 21 | }); - at Object.test (__tests__/duringTests.test.js:18:1) + at Object. (__tests__/duringTests.test.js:18:1) ● undefined thrown during test @@ -163,7 +163,7 @@ exports[`not throwing Error objects 5`] = ` 25 | throw undefined; 26 | }); - at Object.test (__tests__/duringTests.test.js:23:1) + at Object. (__tests__/duringTests.test.js:23:1) ● Object thrown during test @@ -184,7 +184,7 @@ exports[`not throwing Error objects 5`] = ` 30 | }); 31 | - at Object.test (__tests__/duringTests.test.js:28:1) + at Object. (__tests__/duringTests.test.js:28:1) ● Object with stack prop thrown during test @@ -200,7 +200,7 @@ exports[`not throwing Error objects 5`] = ` 34 | throw {stack: 42}; 35 | }); - at Object.test (__tests__/duringTests.test.js:32:1) + at Object. (__tests__/duringTests.test.js:32:1) ● Error during test @@ -214,7 +214,7 @@ exports[`not throwing Error objects 5`] = ` 41 | 42 | test('done(Error)', done => { - at Object.doesNotExist (__tests__/duringTests.test.js:39:3) + at Object. (__tests__/duringTests.test.js:39:3) ● done(Error) @@ -249,7 +249,7 @@ exports[`not throwing Error objects 5`] = ` 49 | 50 | test('returned promise rejection', () => Promise.reject(deepObject)); - at Object.done (__tests__/duringTests.test.js:47:3) + at Object. (__tests__/duringTests.test.js:47:3) ● returned promise rejection @@ -268,7 +268,7 @@ exports[`not throwing Error objects 5`] = ` | ^ 51 | - at Object.test (__tests__/duringTests.test.js:50:1)" + at Object. (__tests__/duringTests.test.js:50:1)" `; exports[`not throwing Error objects 6`] = ` @@ -299,8 +299,8 @@ exports[`works with assertions in separate files 1`] = ` 11 | }; 12 | - at toEqual (macros.js:10:15) - at Object.shouldEqual (__tests__/testMacro.test.js:13:3)" + at shouldEqual (macros.js:10:15) + at Object. (__tests__/testMacro.test.js:13:3)" `; exports[`works with async failures 1`] = ` @@ -331,7 +331,7 @@ exports[`works with async failures 1`] = ` 13 | test('reject, but fail', () => 14 | expect(Promise.reject({foo: 'bar'})).rejects.toEqual({baz: 'bar'})); - at Object.toEqual (__tests__/asyncFailures.test.js:11:50) + at Object. (__tests__/asyncFailures.test.js:11:50) ● reject, but fail @@ -353,7 +353,7 @@ exports[`works with async failures 1`] = ` 16 | test('expect reject', () => 17 | expect(Promise.resolve({foo: 'bar'})).rejects.toEqual({foo: 'bar'})); - at Object.toEqual (__tests__/asyncFailures.test.js:14:48) + at Object. (__tests__/asyncFailures.test.js:14:48) ● expect reject @@ -370,7 +370,7 @@ exports[`works with async failures 1`] = ` 19 | test('expect resolve', () => 20 | expect(Promise.reject({foo: 'bar'})).resolves.toEqual({foo: 'bar'})); - at Object.expect (__tests__/asyncFailures.test.js:17:3) + at Object. (__tests__/asyncFailures.test.js:17:3) ● expect resolve @@ -387,7 +387,7 @@ exports[`works with async failures 1`] = ` 22 | test('timeout', done => { 23 | setTimeout(done, 50); - at Object.expect (__tests__/asyncFailures.test.js:20:3) + at Object. (__tests__/asyncFailures.test.js:20:3) ● timeout @@ -401,7 +401,7 @@ exports[`works with async failures 1`] = ` 24 | }, 5); 25 | - at Object.test (__tests__/asyncFailures.test.js:22:1)" + at Object. (__tests__/asyncFailures.test.js:22:1)" `; exports[`works with node assert 1`] = ` @@ -445,7 +445,7 @@ exports[`works with node assert 1`] = ` 16 | 17 | test('assert with a message', () => { - at Object.assert (__tests__/assertionError.test.js:14:3) + at Object. (__tests__/assertionError.test.js:14:3) ● assert with a message @@ -467,7 +467,7 @@ exports[`works with node assert 1`] = ` 20 | 21 | test('assert.ok', () => { - at Object.assert (__tests__/assertionError.test.js:18:3) + at Object. (__tests__/assertionError.test.js:18:3) ● assert.ok @@ -486,7 +486,7 @@ exports[`works with node assert 1`] = ` 24 | 25 | test('assert.ok with a message', () => { - at Object.ok (__tests__/assertionError.test.js:22:10) + at Object. (__tests__/assertionError.test.js:22:10) ● assert.ok with a message @@ -508,7 +508,7 @@ exports[`works with node assert 1`] = ` 28 | 29 | test('assert.equal', () => { - at Object.ok (__tests__/assertionError.test.js:26:10) + at Object. (__tests__/assertionError.test.js:26:10) ● assert.equal @@ -527,7 +527,7 @@ exports[`works with node assert 1`] = ` 32 | 33 | test('assert.notEqual', () => { - at Object.equal (__tests__/assertionError.test.js:30:10) + at Object. (__tests__/assertionError.test.js:30:10) ● assert.notEqual @@ -546,7 +546,7 @@ exports[`works with node assert 1`] = ` 36 | 37 | test('assert.deepEqual', () => { - at Object.notEqual (__tests__/assertionError.test.js:34:10) + at Object. (__tests__/assertionError.test.js:34:10) ● assert.deepEqual @@ -579,7 +579,7 @@ exports[`works with node assert 1`] = ` 40 | 41 | test('assert.deepEqual with a message', () => { - at Object.deepEqual (__tests__/assertionError.test.js:38:10) + at Object. (__tests__/assertionError.test.js:38:10) ● assert.deepEqual with a message @@ -615,7 +615,7 @@ exports[`works with node assert 1`] = ` 44 | 45 | test('assert.notDeepEqual', () => { - at Object.deepEqual (__tests__/assertionError.test.js:42:10) + at Object. (__tests__/assertionError.test.js:42:10) ● assert.notDeepEqual @@ -638,7 +638,7 @@ exports[`works with node assert 1`] = ` 48 | 49 | test('assert.strictEqual', () => { - at Object.notDeepEqual (__tests__/assertionError.test.js:46:10) + at Object. (__tests__/assertionError.test.js:46:10) ● assert.strictEqual @@ -657,7 +657,7 @@ exports[`works with node assert 1`] = ` 52 | 53 | test('assert.notStrictEqual', () => { - at Object.strictEqual (__tests__/assertionError.test.js:50:10) + at Object. (__tests__/assertionError.test.js:50:10) ● assert.notStrictEqual @@ -679,7 +679,7 @@ exports[`works with node assert 1`] = ` 56 | 57 | test('assert.deepStrictEqual', () => { - at Object.notStrictEqual (__tests__/assertionError.test.js:54:10) + at Object. (__tests__/assertionError.test.js:54:10) ● assert.deepStrictEqual @@ -708,7 +708,7 @@ exports[`works with node assert 1`] = ` 60 | 61 | test('assert.notDeepStrictEqual', () => { - at Object.deepStrictEqual (__tests__/assertionError.test.js:58:10) + at Object. (__tests__/assertionError.test.js:58:10) ● assert.notDeepStrictEqual @@ -731,7 +731,7 @@ exports[`works with node assert 1`] = ` 64 | 65 | test('assert.ifError', () => { - at Object.notDeepStrictEqual (__tests__/assertionError.test.js:62:10) + at Object. (__tests__/assertionError.test.js:62:10) ● assert.ifError @@ -757,7 +757,7 @@ exports[`works with node assert 1`] = ` 68 | 69 | test('assert.doesNotThrow', () => { - at Object.ifError (__tests__/assertionError.test.js:66:10) + at Object. (__tests__/assertionError.test.js:66:10) ● assert.doesNotThrow @@ -779,7 +779,7 @@ exports[`works with node assert 1`] = ` 72 | }); 73 | }); - at Object.doesNotThrow (__tests__/assertionError.test.js:70:10) + at Object. (__tests__/assertionError.test.js:70:10) ● assert.throws @@ -799,7 +799,7 @@ exports[`works with node assert 1`] = ` 78 | 79 | test('assert.throws with different error messages', () => { - at Object.throws (__tests__/assertionError.test.js:76:10) + at Object. (__tests__/assertionError.test.js:76:10) ● assert.throws with different error messages @@ -821,7 +821,7 @@ exports[`works with node assert 1`] = ` 82 | throw new Error('message 1'); 83 | }, - at Object.throws (__tests__/assertionError.test.js:80:10) + at Object. (__tests__/assertionError.test.js:80:10) ● assert.throws with different error types @@ -837,10 +837,10 @@ exports[`works with node assert 1`] = ` 93 | }, TypeError); 94 | }); - at Object.throws (__tests__/assertionError.test.js:91:10) + at Object. (__tests__/assertionError.test.js:91:10) Caught error: SyntaxError: message 1 - at Object.throws (__tests__/assertionError.test.js:91:10) + at Object. (__tests__/assertionError.test.js:91:10) ● async @@ -871,7 +871,7 @@ exports[`works with node assert 1`] = ` 99 | 100 | test('assert.fail', () => { - at Object.equal (__tests__/assertionError.test.js:97:10) + at Object. (__tests__/assertionError.test.js:97:10) ● assert.fail @@ -885,7 +885,7 @@ exports[`works with node assert 1`] = ` 103 | 104 | test('assert.fail with a message', () => { - at Object.fail (__tests__/assertionError.test.js:101:10) + at Object. (__tests__/assertionError.test.js:101:10) ● assert.fail with a message @@ -901,7 +901,7 @@ exports[`works with node assert 1`] = ` 106 | }); 107 | - at Object.fail (__tests__/assertionError.test.js:105:10)" + at Object. (__tests__/assertionError.test.js:105:10)" `; exports[`works with snapshot failures 1`] = ` @@ -924,7 +924,7 @@ exports[`works with snapshot failures 1`] = ` 12 | }); 13 | - at Object.toMatchSnapshot (__tests__/snapshot.test.js:11:17) + at Object. (__tests__/snapshot.test.js:11:17) › 1 snapshot failed. " @@ -950,7 +950,7 @@ exports[`works with snapshot failures with hint 1`] = ` 12 | }); 13 | - at Object.toMatchSnapshot (__tests__/snapshotWithHint.test.js:11:17) + at Object. (__tests__/snapshotWithHint.test.js:11:17) › 1 snapshot failed. " diff --git a/e2e/__tests__/__snapshots__/globals.test.ts.snap b/e2e/__tests__/__snapshots__/globals.test.ts.snap index 47e0dd3db70d..12d93ba87063 100644 --- a/e2e/__tests__/__snapshots__/globals.test.ts.snap +++ b/e2e/__tests__/__snapshots__/globals.test.ts.snap @@ -24,9 +24,9 @@ exports[`cannot have describe with no implementation 1`] = ` Missing second argument. It must be a callback function. > 1 | describe('describe, no implementation'); - | ^ + | ^ - at Object. (__tests__/onlyConstructs.test.js:1:10)" + at Object. (__tests__/onlyConstructs.test.js:1:1)" `; exports[`cannot have describe with no implementation 2`] = ` @@ -48,7 +48,7 @@ exports[`cannot test with no implementation 1`] = ` | ^ 3 | test('test, no implementation'); - at Object.it (__tests__/onlyConstructs.test.js:2:1)" + at Object. (__tests__/onlyConstructs.test.js:2:1)" `; exports[`cannot test with no implementation 2`] = ` @@ -70,7 +70,7 @@ exports[`cannot test with no implementation with expand arg 1`] = ` | ^ 3 | test('test, no implementation'); - at Object.it (__tests__/onlyConstructs.test.js:2:1)" + at Object. (__tests__/onlyConstructs.test.js:2:1)" `; exports[`cannot test with no implementation with expand arg 2`] = ` diff --git a/e2e/__tests__/__snapshots__/jest.config.js.test.ts.snap b/e2e/__tests__/__snapshots__/jest.config.js.test.ts.snap index 45f2b0bcb85b..3ba2a5af6350 100644 --- a/e2e/__tests__/__snapshots__/jest.config.js.test.ts.snap +++ b/e2e/__tests__/__snapshots__/jest.config.js.test.ts.snap @@ -4,7 +4,7 @@ exports[`traverses directory tree up until it finds jest.config 1`] = ` " console.log <>/jest-config-js/some/nested/directory - at Object.log (__tests__/a-banana.js:3:27) + at Object. (__tests__/a-banana.js:3:27) " `; diff --git a/e2e/__tests__/__snapshots__/moduleNameMapper.test.ts.snap b/e2e/__tests__/__snapshots__/moduleNameMapper.test.ts.snap index 20aad34dd9ef..e250032711f9 100644 --- a/e2e/__tests__/__snapshots__/moduleNameMapper.test.ts.snap +++ b/e2e/__tests__/__snapshots__/moduleNameMapper.test.ts.snap @@ -42,8 +42,8 @@ exports[`moduleNameMapper wrong array configuration 1`] = ` 13 | at createNoMappedModuleFoundError (../../packages/jest-resolve/build/resolver.js:891:17) - at Object.require (index.js:10:1) - at Object.require (__tests__/index.js:10:20)" + at Object. (index.js:10:1) + at Object. (__tests__/index.js:10:20)" `; exports[`moduleNameMapper wrong configuration 1`] = ` @@ -72,6 +72,6 @@ exports[`moduleNameMapper wrong configuration 1`] = ` 13 | at createNoMappedModuleFoundError (../../packages/jest-resolve/build/resolver.js:891:17) - at Object.require (index.js:10:1) - at Object.require (__tests__/index.js:10:20)" + at Object. (index.js:10:1) + at Object. (__tests__/index.js:10:20)" `; diff --git a/e2e/__tests__/__snapshots__/nestedTestDefinitions.test.ts.snap b/e2e/__tests__/__snapshots__/nestedTestDefinitions.test.ts.snap index ff7bf18f7d70..89bbedee7b73 100644 --- a/e2e/__tests__/__snapshots__/nestedTestDefinitions.test.ts.snap +++ b/e2e/__tests__/__snapshots__/nestedTestDefinitions.test.ts.snap @@ -17,7 +17,7 @@ exports[`print correct error message with nested test definitions inside describ 18 | }); 19 | }); - at Object.test (__tests__/nestedTestWithinDescribe.js:16:5)" + at Object. (__tests__/nestedTestWithinDescribe.js:16:5)" `; exports[`print correct error message with nested test definitions outside describe 1`] = ` @@ -36,5 +36,5 @@ exports[`print correct error message with nested test definitions outside descri 17 | }); 18 | }); - at Object.test (__tests__/nestedTestOutsideDescribe.js:15:3)" + at Object. (__tests__/nestedTestOutsideDescribe.js:15:3)" `; diff --git a/e2e/__tests__/__snapshots__/processExit.test.ts.snap b/e2e/__tests__/__snapshots__/processExit.test.ts.snap index dabf5f003914..8f6a86f18398 100644 --- a/e2e/__tests__/__snapshots__/processExit.test.ts.snap +++ b/e2e/__tests__/__snapshots__/processExit.test.ts.snap @@ -11,5 +11,5 @@ exports[`prints stack trace pointing to process.exit call 1`] = ` 10 | test('something', () => { 11 | expect(true).toBe(true); - at Object.exit (__tests__/test.js:8:9)" + at Object. (__tests__/test.js:8:9)" `; diff --git a/e2e/__tests__/__snapshots__/requireMissingExt.test.ts.snap b/e2e/__tests__/__snapshots__/requireMissingExt.test.ts.snap index b3a529188daa..ba7f63efeb18 100644 --- a/e2e/__tests__/__snapshots__/requireMissingExt.test.ts.snap +++ b/e2e/__tests__/__snapshots__/requireMissingExt.test.ts.snap @@ -28,5 +28,5 @@ exports[`shows a proper error from deep requires 1`] = ` at Resolver._throwModNotFoundError (../../packages/jest-resolve/build/resolver.js:487:11) at Object. (node_modules/discord.js/src/index.js:21:12) - at Object.require (__tests__/test.js:10:1)" + at Object. (__tests__/test.js:10:1)" `; diff --git a/e2e/__tests__/__snapshots__/resolveNoFileExtensions.test.ts.snap b/e2e/__tests__/__snapshots__/resolveNoFileExtensions.test.ts.snap index b906b0cf9d7d..520983073c8f 100644 --- a/e2e/__tests__/__snapshots__/resolveNoFileExtensions.test.ts.snap +++ b/e2e/__tests__/__snapshots__/resolveNoFileExtensions.test.ts.snap @@ -38,6 +38,6 @@ exports[`show error message with matching files 1`] = ` 9 | at Resolver._throwModNotFoundError (../../packages/jest-resolve/build/resolver.js:487:11) - at Object.require (index.js:8:18) - at Object.require (__tests__/test.js:8:11)" + at Object. (index.js:8:18) + at Object. (__tests__/test.js:8:11)" `; diff --git a/e2e/__tests__/__snapshots__/testFailing.test.ts.snap b/e2e/__tests__/__snapshots__/testFailing.test.ts.snap index f5363d5d22af..7559a21470ef 100644 --- a/e2e/__tests__/__snapshots__/testFailing.test.ts.snap +++ b/e2e/__tests__/__snapshots__/testFailing.test.ts.snap @@ -32,55 +32,55 @@ exports[`works with all statuses 1`] = ` 15 | 16 | it.skip('skips', () => { - at Object.toBe (__tests__/statuses.test.js:13:14) + at Object. (__tests__/statuses.test.js:13:14) ● .add(1, 1) Failing test passed even though it was supposed to fail. Remove \`.failing\` to remove error. - 28 | }); - 29 | - > 30 | test.failing.each([ - | ^ - 31 | {a: 1, b: 1, expected: 2}, 32 | {a: 1, b: 2, expected: 3}, 33 | {a: 2, b: 1, expected: 3}, + > 34 | ])('.add($a, $b)', ({a, b, expected}) => { + | ^ + 35 | expect(a + b).toBe(expected); + 36 | }); + 37 | at ../../packages/jest-each/build/bind.js:45:11 at Array.forEach () - at Object. (__tests__/statuses.test.js:30:1) + at Object. (__tests__/statuses.test.js:34:3) ● .add(1, 2) Failing test passed even though it was supposed to fail. Remove \`.failing\` to remove error. - 28 | }); - 29 | - > 30 | test.failing.each([ - | ^ - 31 | {a: 1, b: 1, expected: 2}, 32 | {a: 1, b: 2, expected: 3}, 33 | {a: 2, b: 1, expected: 3}, + > 34 | ])('.add($a, $b)', ({a, b, expected}) => { + | ^ + 35 | expect(a + b).toBe(expected); + 36 | }); + 37 | at ../../packages/jest-each/build/bind.js:45:11 at Array.forEach () - at Object. (__tests__/statuses.test.js:30:1) + at Object. (__tests__/statuses.test.js:34:3) ● .add(2, 1) Failing test passed even though it was supposed to fail. Remove \`.failing\` to remove error. - 28 | }); - 29 | - > 30 | test.failing.each([ - | ^ - 31 | {a: 1, b: 1, expected: 2}, 32 | {a: 1, b: 2, expected: 3}, 33 | {a: 2, b: 1, expected: 3}, + > 34 | ])('.add($a, $b)', ({a, b, expected}) => { + | ^ + 35 | expect(a + b).toBe(expected); + 36 | }); + 37 | at ../../packages/jest-each/build/bind.js:45:11 at Array.forEach () - at Object. (__tests__/statuses.test.js:30:1) + at Object. (__tests__/statuses.test.js:34:3) ● failing passes = fails @@ -94,7 +94,7 @@ exports[`works with all statuses 1`] = ` 48 | }); 49 | - at Object.failing (__tests__/statuses.test.js:46:4)" + at Object. (__tests__/statuses.test.js:46:4)" `; exports[`works with concurrent and only mode 1`] = ` @@ -120,59 +120,59 @@ exports[`works with concurrent and only mode 1`] = ` 15 | }); 16 | - at failing (__tests__/worksWithConcurrentOnlyMode.test.js:13:22) - at Object.describe (__tests__/worksWithConcurrentOnlyMode.test.js:8:1) + at __tests__/worksWithConcurrentOnlyMode.test.js:13:22 + at Object. (__tests__/worksWithConcurrentOnlyMode.test.js:8:1) ● block with concurrent › .add(1, 1) Failing test passed even though it was supposed to fail. Remove \`.failing\` to remove error. - 15 | }); - 16 | - > 17 | test.concurrent.only.failing.each([ - | ^ - 18 | {a: 1, b: 1, expected: 2}, 19 | {a: 1, b: 2, expected: 3}, 20 | {a: 2, b: 1, expected: 3}, + > 21 | ])('.add($a, $b)', ({a, b, expected}) => { + | ^ + 22 | expect(a + b).toBe(expected); + 23 | }); + 24 | at ../../packages/jest-each/build/bind.js:45:11 at Array.forEach () - at __tests__/worksWithConcurrentOnlyMode.test.js:17:3 - at Object.describe (__tests__/worksWithConcurrentOnlyMode.test.js:8:1) + at __tests__/worksWithConcurrentOnlyMode.test.js:21:5 + at Object. (__tests__/worksWithConcurrentOnlyMode.test.js:8:1) ● block with concurrent › .add(1, 2) Failing test passed even though it was supposed to fail. Remove \`.failing\` to remove error. - 15 | }); - 16 | - > 17 | test.concurrent.only.failing.each([ - | ^ - 18 | {a: 1, b: 1, expected: 2}, 19 | {a: 1, b: 2, expected: 3}, 20 | {a: 2, b: 1, expected: 3}, + > 21 | ])('.add($a, $b)', ({a, b, expected}) => { + | ^ + 22 | expect(a + b).toBe(expected); + 23 | }); + 24 | at ../../packages/jest-each/build/bind.js:45:11 at Array.forEach () - at __tests__/worksWithConcurrentOnlyMode.test.js:17:3 - at Object.describe (__tests__/worksWithConcurrentOnlyMode.test.js:8:1) + at __tests__/worksWithConcurrentOnlyMode.test.js:21:5 + at Object. (__tests__/worksWithConcurrentOnlyMode.test.js:8:1) ● block with concurrent › .add(2, 1) Failing test passed even though it was supposed to fail. Remove \`.failing\` to remove error. - 15 | }); - 16 | - > 17 | test.concurrent.only.failing.each([ - | ^ - 18 | {a: 1, b: 1, expected: 2}, 19 | {a: 1, b: 2, expected: 3}, 20 | {a: 2, b: 1, expected: 3}, + > 21 | ])('.add($a, $b)', ({a, b, expected}) => { + | ^ + 22 | expect(a + b).toBe(expected); + 23 | }); + 24 | at ../../packages/jest-each/build/bind.js:45:11 at Array.forEach () - at __tests__/worksWithConcurrentOnlyMode.test.js:17:3 - at Object.describe (__tests__/worksWithConcurrentOnlyMode.test.js:8:1)" + at __tests__/worksWithConcurrentOnlyMode.test.js:21:5 + at Object. (__tests__/worksWithConcurrentOnlyMode.test.js:8:1)" `; exports[`works with concurrent mode 1`] = ` @@ -201,7 +201,7 @@ exports[`works with concurrent mode 1`] = ` 12 | 13 | it.concurrent.failing('failing passes = fails', () => { - at Object.toBe (__tests__/worksWithConcurrentMode.test.js:10:16) + at Object. (__tests__/worksWithConcurrentMode.test.js:10:16) ● block with concurrent › failing passes = fails @@ -215,59 +215,59 @@ exports[`works with concurrent mode 1`] = ` 15 | }); 16 | - at failing (__tests__/worksWithConcurrentMode.test.js:13:17) - at Object.describe (__tests__/worksWithConcurrentMode.test.js:8:1) + at __tests__/worksWithConcurrentMode.test.js:13:17 + at Object. (__tests__/worksWithConcurrentMode.test.js:8:1) ● block with concurrent › .add(1, 1) Failing test passed even though it was supposed to fail. Remove \`.failing\` to remove error. - 15 | }); - 16 | - > 17 | test.concurrent.failing.each([ - | ^ - 18 | {a: 1, b: 1, expected: 2}, 19 | {a: 1, b: 2, expected: 3}, 20 | {a: 2, b: 1, expected: 3}, + > 21 | ])('.add($a, $b)', ({a, b, expected}) => { + | ^ + 22 | expect(a + b).toBe(expected); + 23 | }); + 24 | at ../../packages/jest-each/build/bind.js:45:11 at Array.forEach () - at __tests__/worksWithConcurrentMode.test.js:17:3 - at Object.describe (__tests__/worksWithConcurrentMode.test.js:8:1) + at __tests__/worksWithConcurrentMode.test.js:21:5 + at Object. (__tests__/worksWithConcurrentMode.test.js:8:1) ● block with concurrent › .add(1, 2) Failing test passed even though it was supposed to fail. Remove \`.failing\` to remove error. - 15 | }); - 16 | - > 17 | test.concurrent.failing.each([ - | ^ - 18 | {a: 1, b: 1, expected: 2}, 19 | {a: 1, b: 2, expected: 3}, 20 | {a: 2, b: 1, expected: 3}, + > 21 | ])('.add($a, $b)', ({a, b, expected}) => { + | ^ + 22 | expect(a + b).toBe(expected); + 23 | }); + 24 | at ../../packages/jest-each/build/bind.js:45:11 at Array.forEach () - at __tests__/worksWithConcurrentMode.test.js:17:3 - at Object.describe (__tests__/worksWithConcurrentMode.test.js:8:1) + at __tests__/worksWithConcurrentMode.test.js:21:5 + at Object. (__tests__/worksWithConcurrentMode.test.js:8:1) ● block with concurrent › .add(2, 1) Failing test passed even though it was supposed to fail. Remove \`.failing\` to remove error. - 15 | }); - 16 | - > 17 | test.concurrent.failing.each([ - | ^ - 18 | {a: 1, b: 1, expected: 2}, 19 | {a: 1, b: 2, expected: 3}, 20 | {a: 2, b: 1, expected: 3}, + > 21 | ])('.add($a, $b)', ({a, b, expected}) => { + | ^ + 22 | expect(a + b).toBe(expected); + 23 | }); + 24 | at ../../packages/jest-each/build/bind.js:45:11 at Array.forEach () - at __tests__/worksWithConcurrentMode.test.js:17:3 - at Object.describe (__tests__/worksWithConcurrentMode.test.js:8:1)" + at __tests__/worksWithConcurrentMode.test.js:21:5 + at Object. (__tests__/worksWithConcurrentMode.test.js:8:1)" `; exports[`works with only mode 1`] = ` @@ -297,52 +297,52 @@ exports[`works with only mode 1`] = ` Failing test passed even though it was supposed to fail. Remove \`.failing\` to remove error. - 13 | }); - 14 | - > 15 | it.only.failing.each([ - | ^ - 16 | {a: 1, b: 1, expected: 2}, 17 | {a: 1, b: 2, expected: 3}, 18 | {a: 2, b: 1, expected: 3}, + > 19 | ])('.add($a, $b)', ({a, b, expected}) => { + | ^ + 20 | expect(a + b).toBe(expected); + 21 | }); + 22 | at ../../packages/jest-each/build/bind.js:45:11 at Array.forEach () - at __tests__/worksWithOnlyMode.test.js:15:3 - at Object.describe (__tests__/worksWithOnlyMode.test.js:10:1) + at __tests__/worksWithOnlyMode.test.js:19:5 + at Object. (__tests__/worksWithOnlyMode.test.js:10:1) ● block with only, should pass › .add(1, 2) Failing test passed even though it was supposed to fail. Remove \`.failing\` to remove error. - 13 | }); - 14 | - > 15 | it.only.failing.each([ - | ^ - 16 | {a: 1, b: 1, expected: 2}, 17 | {a: 1, b: 2, expected: 3}, 18 | {a: 2, b: 1, expected: 3}, + > 19 | ])('.add($a, $b)', ({a, b, expected}) => { + | ^ + 20 | expect(a + b).toBe(expected); + 21 | }); + 22 | at ../../packages/jest-each/build/bind.js:45:11 at Array.forEach () - at __tests__/worksWithOnlyMode.test.js:15:3 - at Object.describe (__tests__/worksWithOnlyMode.test.js:10:1) + at __tests__/worksWithOnlyMode.test.js:19:5 + at Object. (__tests__/worksWithOnlyMode.test.js:10:1) ● block with only, should pass › .add(2, 1) Failing test passed even though it was supposed to fail. Remove \`.failing\` to remove error. - 13 | }); - 14 | - > 15 | it.only.failing.each([ - | ^ - 16 | {a: 1, b: 1, expected: 2}, 17 | {a: 1, b: 2, expected: 3}, 18 | {a: 2, b: 1, expected: 3}, + > 19 | ])('.add($a, $b)', ({a, b, expected}) => { + | ^ + 20 | expect(a + b).toBe(expected); + 21 | }); + 22 | at ../../packages/jest-each/build/bind.js:45:11 at Array.forEach () - at __tests__/worksWithOnlyMode.test.js:15:3 - at Object.describe (__tests__/worksWithOnlyMode.test.js:10:1) + at __tests__/worksWithOnlyMode.test.js:19:5 + at Object. (__tests__/worksWithOnlyMode.test.js:10:1) ● block with only, should fail › failing passes = fails, should fail @@ -356,8 +356,8 @@ exports[`works with only mode 1`] = ` 35 | }); 36 | - at failing (__tests__/worksWithOnlyMode.test.js:33:11) - at Object.describe (__tests__/worksWithOnlyMode.test.js:32:1) + at __tests__/worksWithOnlyMode.test.js:33:11 + at Object. (__tests__/worksWithOnlyMode.test.js:32:1) ● block with only in other it, should skip › failing test @@ -374,7 +374,7 @@ exports[`works with only mode 1`] = ` 54 | 55 | it('passing test but skipped', () => { - at Object.toBe (__tests__/worksWithOnlyMode.test.js:52:16) + at Object. (__tests__/worksWithOnlyMode.test.js:52:16) ● block with only with different syntax, should fail › failing passes = fails, should fail 1 @@ -388,8 +388,8 @@ exports[`works with only mode 1`] = ` 63 | }); 64 | - at failing (__tests__/worksWithOnlyMode.test.js:61:7) - at Object.describe (__tests__/worksWithOnlyMode.test.js:60:1) + at __tests__/worksWithOnlyMode.test.js:61:7 + at Object. (__tests__/worksWithOnlyMode.test.js:60:1) ● block with only with different syntax, should fail › failing passes = fails, should fail 2 @@ -403,8 +403,8 @@ exports[`works with only mode 1`] = ` 67 | }); 68 | - at failing (__tests__/worksWithOnlyMode.test.js:65:13) - at Object.describe (__tests__/worksWithOnlyMode.test.js:60:1)" + at __tests__/worksWithOnlyMode.test.js:65:13 + at Object. (__tests__/worksWithOnlyMode.test.js:60:1)" `; exports[`works with skip mode 1`] = ` @@ -438,5 +438,5 @@ exports[`works with skip mode 1`] = ` 24 | 25 | it.skip('passing test', () => { - at Object.toBe (__tests__/worksWithSkipMode.test.js:22:16)" + at Object. (__tests__/worksWithSkipMode.test.js:22:16)" `; diff --git a/e2e/__tests__/__snapshots__/testFailingJasmine.test.ts.snap b/e2e/__tests__/__snapshots__/testFailingJasmine.test.ts.snap index 3e1f84140356..b0415607b569 100644 --- a/e2e/__tests__/__snapshots__/testFailingJasmine.test.ts.snap +++ b/e2e/__tests__/__snapshots__/testFailingJasmine.test.ts.snap @@ -14,7 +14,7 @@ exports[`throws an error about unsupported modifier 1`] = ` 24 | }); 25 | - at Object.failing (__tests__/statuses.test.js:22:4) + at Object. (__tests__/statuses.test.js:22:4) FAIL __tests__/worksWithConcurrentMode.test.js ● block with concurrent › failing test @@ -32,7 +32,7 @@ FAIL __tests__/worksWithConcurrentMode.test.js 12 | 13 | it.concurrent.failing('failing passes = fails', () => { - at Object.toBe (__tests__/worksWithConcurrentMode.test.js:10:16) + at Object. (__tests__/worksWithConcurrentMode.test.js:10:16) ● block with concurrent › encountered a declaration exception @@ -46,9 +46,9 @@ FAIL __tests__/worksWithConcurrentMode.test.js 15 | }); 16 | - at Function.failing (../../packages/jest-jasmine2/build/jasmineAsyncInstall.js:195:11) - at Suite.failing (__tests__/worksWithConcurrentMode.test.js:13:17) - at Object.describe (__tests__/worksWithConcurrentMode.test.js:8:1) + at Function.failing (../../packages/jest-jasmine2/build/jasmineAsyncInstall.js:160:11) + at Suite. (__tests__/worksWithConcurrentMode.test.js:13:17) + at Object. (__tests__/worksWithConcurrentMode.test.js:8:1) FAIL __tests__/worksWithConcurrentOnlyMode.test.js ● block with concurrent › skipped failing test @@ -66,7 +66,7 @@ FAIL __tests__/worksWithConcurrentOnlyMode.test.js 12 | 13 | it.concurrent.only.failing('failing passes = fails', () => { - at Object.toBe (__tests__/worksWithConcurrentOnlyMode.test.js:10:16) + at Object. (__tests__/worksWithConcurrentOnlyMode.test.js:10:16) ● block with concurrent › encountered a declaration exception @@ -80,9 +80,9 @@ FAIL __tests__/worksWithConcurrentOnlyMode.test.js 15 | }); 16 | - at Function.failing (../../packages/jest-jasmine2/build/jasmineAsyncInstall.js:195:11) - at Suite.failing (__tests__/worksWithConcurrentOnlyMode.test.js:13:22) - at Object.describe (__tests__/worksWithConcurrentOnlyMode.test.js:8:1) + at Function.failing (../../packages/jest-jasmine2/build/jasmineAsyncInstall.js:160:11) + at Suite. (__tests__/worksWithConcurrentOnlyMode.test.js:13:22) + at Object. (__tests__/worksWithConcurrentOnlyMode.test.js:8:1) FAIL __tests__/worksWithOnlyMode.test.js ● block with only, should pass › encountered a declaration exception @@ -97,8 +97,8 @@ FAIL __tests__/worksWithOnlyMode.test.js 13 | }); 14 | - at Suite.failing (__tests__/worksWithOnlyMode.test.js:11:11) - at Object.describe (__tests__/worksWithOnlyMode.test.js:10:1) + at Suite. (__tests__/worksWithOnlyMode.test.js:11:11) + at Object. (__tests__/worksWithOnlyMode.test.js:10:1) ● block with only, should fail › encountered a declaration exception @@ -112,8 +112,8 @@ FAIL __tests__/worksWithOnlyMode.test.js 35 | }); 36 | - at Suite.failing (__tests__/worksWithOnlyMode.test.js:33:11) - at Object.describe (__tests__/worksWithOnlyMode.test.js:32:1) + at Suite. (__tests__/worksWithOnlyMode.test.js:33:11) + at Object. (__tests__/worksWithOnlyMode.test.js:32:1) ● block with only in other it, should skip › encountered a declaration exception @@ -127,8 +127,8 @@ FAIL __tests__/worksWithOnlyMode.test.js 49 | }); 50 | - at Suite.failing (__tests__/worksWithOnlyMode.test.js:47:6) - at Object.describe (__tests__/worksWithOnlyMode.test.js:46:1) + at Suite. (__tests__/worksWithOnlyMode.test.js:47:6) + at Object. (__tests__/worksWithOnlyMode.test.js:46:1) ● block with only with different syntax, should fail › encountered a declaration exception @@ -142,8 +142,8 @@ FAIL __tests__/worksWithOnlyMode.test.js 63 | }); 64 | - at Suite.failing (__tests__/worksWithOnlyMode.test.js:61:7) - at Object.describe (__tests__/worksWithOnlyMode.test.js:60:1) + at Suite. (__tests__/worksWithOnlyMode.test.js:61:7) + at Object. (__tests__/worksWithOnlyMode.test.js:60:1) FAIL __tests__/worksWithSkipMode.test.js ● block with only, should pass › encountered a declaration exception @@ -158,8 +158,8 @@ FAIL __tests__/worksWithSkipMode.test.js 11 | }); 12 | - at Suite.failing (__tests__/worksWithSkipMode.test.js:9:11) - at Object.describe (__tests__/worksWithSkipMode.test.js:8:1) + at Suite. (__tests__/worksWithSkipMode.test.js:9:11) + at Object. (__tests__/worksWithSkipMode.test.js:8:1) ● block with only, should fail › encountered a declaration exception @@ -173,6 +173,6 @@ FAIL __tests__/worksWithSkipMode.test.js 37 | }); 38 | - at Suite.failing (__tests__/worksWithSkipMode.test.js:35:11) - at Object.describe (__tests__/worksWithSkipMode.test.js:34:1)" + at Suite. (__tests__/worksWithSkipMode.test.js:35:11) + at Object. (__tests__/worksWithSkipMode.test.js:34:1)" `; diff --git a/e2e/__tests__/__snapshots__/testRetries.test.ts.snap b/e2e/__tests__/__snapshots__/testRetries.test.ts.snap index 09c1f807a028..6323c266c938 100644 --- a/e2e/__tests__/__snapshots__/testRetries.test.ts.snap +++ b/e2e/__tests__/__snapshots__/testRetries.test.ts.snap @@ -16,7 +16,7 @@ exports[`Test Retries logs error(s) before retry 1`] = ` 18 | }); 19 | - at Object.toBeFalsy (__tests__/logErrorsBeforeRetries.test.js:16:18) + at Object. (__tests__/logErrorsBeforeRetries.test.js:16:18) RETRY 2 @@ -32,7 +32,7 @@ exports[`Test Retries logs error(s) before retry 1`] = ` 18 | }); 19 | - at Object.toBeFalsy (__tests__/logErrorsBeforeRetries.test.js:16:18) + at Object. (__tests__/logErrorsBeforeRetries.test.js:16:18) PASS __tests__/logErrorsBeforeRetries.test.js ✓ retryTimes set" diff --git a/e2e/__tests__/__snapshots__/testTodo.test.ts.snap b/e2e/__tests__/__snapshots__/testTodo.test.ts.snap index 223f73fe35e8..6e87b698a399 100644 --- a/e2e/__tests__/__snapshots__/testTodo.test.ts.snap +++ b/e2e/__tests__/__snapshots__/testTodo.test.ts.snap @@ -12,7 +12,7 @@ exports[`shows error messages when called with invalid argument 1`] = ` | ^ 9 | - at Object.todo (__tests__/todoNonString.test.js:8:4)" + at Object. (__tests__/todoNonString.test.js:8:4)" `; exports[`shows error messages when called with multiple arguments 1`] = ` @@ -27,7 +27,7 @@ exports[`shows error messages when called with multiple arguments 1`] = ` | ^ 9 | - at Object.todo (__tests__/todoMultipleArgs.test.js:8:4)" + at Object. (__tests__/todoMultipleArgs.test.js:8:4)" `; exports[`shows error messages when called with no arguments 1`] = ` @@ -42,7 +42,7 @@ exports[`shows error messages when called with no arguments 1`] = ` | ^ 9 | - at Object.todo (__tests__/todoNoArgs.test.js:8:4)" + at Object. (__tests__/todoNoArgs.test.js:8:4)" `; exports[`shows todo messages when in verbose mode 1`] = ` @@ -75,5 +75,5 @@ exports[`works with all statuses 1`] = ` 15 | 16 | it.skip('skips', () => { - at Object.toBe (__tests__/statuses.test.js:13:14)" + at Object. (__tests__/statuses.test.js:13:14)" `; diff --git a/e2e/__tests__/__snapshots__/toMatchInlineSnapshot.test.ts.snap b/e2e/__tests__/__snapshots__/toMatchInlineSnapshot.test.ts.snap index f573e3168a2e..91c4a659d4d1 100644 --- a/e2e/__tests__/__snapshots__/toMatchInlineSnapshot.test.ts.snap +++ b/e2e/__tests__/__snapshots__/toMatchInlineSnapshot.test.ts.snap @@ -64,7 +64,7 @@ exports[`diff with prototype is correct 1`] = ` 4 | "hello": "world", 5 | } - at Object.toMatchInlineSnapshot (__tests__/with-prototype-diff.test.js:2:30) + at Object. (__tests__/with-prototype-diff.test.js:2:30) › 1 snapshot failed. Snapshot Summary diff --git a/e2e/__tests__/__snapshots__/watchModeOnlyFailed.test.ts.snap b/e2e/__tests__/__snapshots__/watchModeOnlyFailed.test.ts.snap index 1eb721361319..3bbad5a6f839 100644 --- a/e2e/__tests__/__snapshots__/watchModeOnlyFailed.test.ts.snap +++ b/e2e/__tests__/__snapshots__/watchModeOnlyFailed.test.ts.snap @@ -12,7 +12,7 @@ exports[`can press "f" to run only failed tests: test results 1`] = ` > 1 | test('bar 1', () => { expect('bar').toBe('foo'); }); | ^ - at Object.toBe (__tests__/bar.spec.js:1:37) + at Object. (__tests__/bar.spec.js:1:37) PASS __tests__/foo.spec.js" `; @@ -31,7 +31,7 @@ exports[`can press "f" to run only failed tests: test results 2`] = ` > 1 | test('bar 1', () => { expect('bar').toBe('foo'); }); | ^ - at Object.toBe (__tests__/bar.spec.js:1:37)" + at Object. (__tests__/bar.spec.js:1:37)" `; exports[`can press "f" to run only failed tests: test summary 1`] = ` diff --git a/e2e/__tests__/__snapshots__/watchModeUpdateSnapshot.test.ts.snap b/e2e/__tests__/__snapshots__/watchModeUpdateSnapshot.test.ts.snap index f13279f7e2b1..e81306f53e6f 100644 --- a/e2e/__tests__/__snapshots__/watchModeUpdateSnapshot.test.ts.snap +++ b/e2e/__tests__/__snapshots__/watchModeUpdateSnapshot.test.ts.snap @@ -16,7 +16,7 @@ exports[`can press "u" to update snapshots: test results 1`] = ` > 1 | test('bar', () => { expect('bar').toMatchSnapshot(); }); | ^ - at Object.toMatchSnapshot (__tests__/bar.spec.js:1:35) + at Object. (__tests__/bar.spec.js:1:35) › 1 snapshot failed. Snapshot Summary diff --git a/e2e/__tests__/__snapshots__/wrongEnv.test.ts.snap b/e2e/__tests__/__snapshots__/wrongEnv.test.ts.snap index e8f4df3c52a8..d022be44cc6e 100644 --- a/e2e/__tests__/__snapshots__/wrongEnv.test.ts.snap +++ b/e2e/__tests__/__snapshots__/wrongEnv.test.ts.snap @@ -21,7 +21,7 @@ exports[`Wrong globals for environment print useful error for document 1`] = ` 18 | console.log(div); 19 | - at Object.document (__tests__/node.js:16:15)" + at Object. (__tests__/node.js:16:15)" `; exports[`Wrong globals for environment print useful error for navigator 1`] = ` @@ -45,7 +45,7 @@ exports[`Wrong globals for environment print useful error for navigator 1`] = ` 34 | console.log(userAgent); 35 | - at Object.navigator (__tests__/node.js:32:21)" + at Object. (__tests__/node.js:32:21)" `; exports[`Wrong globals for environment print useful error for unref 1`] = ` @@ -67,7 +67,7 @@ exports[`Wrong globals for environment print useful error for unref 1`] = ` 15 | expect(1).toBe(1); 16 | }); - at Object.unref (__tests__/jsdom.js:13:27)" + at Object. (__tests__/jsdom.js:13:27)" `; exports[`Wrong globals for environment print useful error for window 1`] = ` @@ -91,7 +91,7 @@ exports[`Wrong globals for environment print useful error for window 1`] = ` 26 | console.log(location); 27 | - at Object.window (__tests__/node.js:24:20)" + at Object. (__tests__/node.js:24:20)" `; exports[`Wrong globals for environment print useful error when it explodes during evaluation 1`] = ` @@ -111,5 +111,5 @@ exports[`Wrong globals for environment print useful error when it explodes durin 15 | console.log(div); 16 | - at Object.document (__tests__/beforeTest.js:13:13)" + at Object. (__tests__/beforeTest.js:13:13)" `; diff --git a/e2e/__tests__/toMatchInlineSnapshotWithJSX.test.ts b/e2e/__tests__/toMatchInlineSnapshotWithJSX.test.ts index bcc9211f1870..8fdb84e085ec 100644 --- a/e2e/__tests__/toMatchInlineSnapshotWithJSX.test.ts +++ b/e2e/__tests__/toMatchInlineSnapshotWithJSX.test.ts @@ -100,7 +100,7 @@ it('successfully runs the tests with external babel config', () => { 7 | y 8 | - at Object.toMatchInlineSnapshot (__tests__/MismatchingSnapshot.test.js:5:50) + at Object. (__tests__/MismatchingSnapshot.test.js:5:50) " `); @@ -149,7 +149,7 @@ it('successfully runs the tests with inline babel config', () => { 7 | y 8 | - at Object.toMatchInlineSnapshot (__tests__/MismatchingSnapshot.test.js:5:50) + at Object. (__tests__/MismatchingSnapshot.test.js:5:50) " `); diff --git a/e2e/console-debugging/__tests__/console-debugging.test.js b/e2e/console-debugging/__tests__/console-debugging.test.js index 9d801e87b6c5..4518d0d06103 100644 --- a/e2e/console-debugging/__tests__/console-debugging.test.js +++ b/e2e/console-debugging/__tests__/console-debugging.test.js @@ -20,7 +20,7 @@ test('verbose mode prints console output synchronously', () => { " console.log test - at Object.log (__tests__/console-debugging.test.js:17:11) + at Object. (__tests__/console-debugging.test.js:17:11) " `); diff --git a/packages/jest-runner/package.json b/packages/jest-runner/package.json index 7124381e6cfc..36f70de1f2ea 100644 --- a/packages/jest-runner/package.json +++ b/packages/jest-runner/package.json @@ -37,7 +37,7 @@ "jest-watcher": "workspace:^", "jest-worker": "workspace:^", "p-limit": "^3.1.0", - "source-map-support": "0.5.13" + "source-map-support": "^0.5.21" }, "devDependencies": { "@tsd/typescript": "~4.8.2", diff --git a/packages/jest-runtime/src/__tests__/runtime_environment.test.js b/packages/jest-runtime/src/__tests__/runtime_environment.test.js index 95309d27d928..6b3057f403bc 100644 --- a/packages/jest-runtime/src/__tests__/runtime_environment.test.js +++ b/packages/jest-runtime/src/__tests__/runtime_environment.test.js @@ -23,7 +23,7 @@ describe('Runtime', () => { runtime.requireModule(runtime.__mockRootPath, './throwing.js'); } catch (err) { hasThrown = true; - expect(err.stack).toMatch(/^Error: throwing\s+at Object./); + expect(err.stack).toMatch(/^Error: throwing\s+at Object\.call/); } expect(hasThrown).toBe(true); }); diff --git a/yarn.lock b/yarn.lock index f67286c1092e..a50d6cf5000b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12732,7 +12732,7 @@ __metadata: jest-watcher: "workspace:^" jest-worker: "workspace:^" p-limit: ^3.1.0 - source-map-support: 0.5.13 + source-map-support: ^0.5.21 tsd-lite: ^0.6.0 languageName: unknown linkType: soft @@ -18992,17 +18992,7 @@ __metadata: languageName: node linkType: hard -"source-map-support@npm:0.5.13": - version: 0.5.13 - resolution: "source-map-support@npm:0.5.13" - dependencies: - buffer-from: ^1.0.0 - source-map: ^0.6.0 - checksum: 933550047b6c1a2328599a21d8b7666507427c0f5ef5eaadd56b5da0fd9505e239053c66fe181bf1df469a3b7af9d775778eee283cbb7ae16b902ddc09e93a97 - languageName: node - linkType: hard - -"source-map-support@npm:^0.5.16, source-map-support@npm:~0.5.20": +"source-map-support@npm:^0.5.16, source-map-support@npm:^0.5.21, source-map-support@npm:~0.5.20": version: 0.5.21 resolution: "source-map-support@npm:0.5.21" dependencies: