From 7cc232208dce571390c8d3de6da0b207956f09a1 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Sat, 28 Jan 2023 11:48:01 +0100 Subject: [PATCH] snaps --- .../__snapshots__/circusDeclarationErrors.test.ts.snap | 8 ++++---- e2e/__tests__/__snapshots__/moduleNameMapper.test.ts.snap | 4 ++-- .../__snapshots__/requireMissingExt.test.ts.snap | 2 +- .../__snapshots__/resolveNoFileExtensions.test.ts.snap | 2 +- e2e/__tests__/__snapshots__/showConfig.test.ts.snap | 2 +- .../__snapshots__/testFailingJasmine.test.ts.snap | 4 ++-- e2e/__tests__/__snapshots__/transform.test.ts.snap | 2 +- e2e/__tests__/stackTrace.test.ts | 2 +- scripts/buildUtils.mjs | 1 + 9 files changed, 14 insertions(+), 13 deletions(-) diff --git a/e2e/__tests__/__snapshots__/circusDeclarationErrors.test.ts.snap b/e2e/__tests__/__snapshots__/circusDeclarationErrors.test.ts.snap index f5808a9413b9..6e3a11b21240 100644 --- a/e2e/__tests__/__snapshots__/circusDeclarationErrors.test.ts.snap +++ b/e2e/__tests__/__snapshots__/circusDeclarationErrors.test.ts.snap @@ -16,7 +16,7 @@ exports[`defining tests and hooks asynchronously throws 1`] = ` 14 | }); 15 | }); - at eventHandler (../../packages/jest-circus/build/eventHandler.js:134:11) + at eventHandler (../../packages/jest-circus/build/jestAdapterInit.js:141:38) at test (__tests__/asyncDefinition.test.js:12:5) ● Test suite failed to run @@ -31,7 +31,7 @@ exports[`defining tests and hooks asynchronously throws 1`] = ` 15 | }); 16 | - at eventHandler (../../packages/jest-circus/build/eventHandler.js:97:11) + at eventHandler (../../packages/jest-circus/build/jestAdapterInit.js:107:38) at afterAll (__tests__/asyncDefinition.test.js:13:5) ● Test suite failed to run @@ -46,7 +46,7 @@ exports[`defining tests and hooks asynchronously throws 1`] = ` 20 | }); 21 | - at eventHandler (../../packages/jest-circus/build/eventHandler.js:134:11) + at eventHandler (../../packages/jest-circus/build/jestAdapterInit.js:141:38) at test (__tests__/asyncDefinition.test.js:18:3) ● Test suite failed to run @@ -60,6 +60,6 @@ exports[`defining tests and hooks asynchronously throws 1`] = ` 20 | }); 21 | - at eventHandler (../../packages/jest-circus/build/eventHandler.js:97:11) + at eventHandler (../../packages/jest-circus/build/jestAdapterInit.js:107:38) at afterAll (__tests__/asyncDefinition.test.js:19:3)" `; diff --git a/e2e/__tests__/__snapshots__/moduleNameMapper.test.ts.snap b/e2e/__tests__/__snapshots__/moduleNameMapper.test.ts.snap index dcc24b54322b..fdc4ab1a6f18 100644 --- a/e2e/__tests__/__snapshots__/moduleNameMapper.test.ts.snap +++ b/e2e/__tests__/__snapshots__/moduleNameMapper.test.ts.snap @@ -41,7 +41,7 @@ exports[`moduleNameMapper wrong array configuration 1`] = ` 12 | module.exports = () => 'test'; 13 | - at createNoMappedModuleFoundError (../../packages/jest-resolve/build/resolver.js:759:17) + at createNoMappedModuleFoundError (../../packages/jest-resolve/build/index.js:1142:17) at Object.require (index.js:10:1) at Object.require (__tests__/index.js:10:20)" `; @@ -71,7 +71,7 @@ exports[`moduleNameMapper wrong configuration 1`] = ` 12 | module.exports = () => 'test'; 13 | - at createNoMappedModuleFoundError (../../packages/jest-resolve/build/resolver.js:759:17) + at createNoMappedModuleFoundError (../../packages/jest-resolve/build/index.js:1142:17) at Object.require (index.js:10:1) at Object.require (__tests__/index.js:10:20)" `; diff --git a/e2e/__tests__/__snapshots__/requireMissingExt.test.ts.snap b/e2e/__tests__/__snapshots__/requireMissingExt.test.ts.snap index 34f55ffd75e3..2f5ff4aa00e5 100644 --- a/e2e/__tests__/__snapshots__/requireMissingExt.test.ts.snap +++ b/e2e/__tests__/__snapshots__/requireMissingExt.test.ts.snap @@ -26,7 +26,7 @@ exports[`shows a proper error from deep requires 1`] = ` 12 | test('dummy', () => { 13 | expect(1).toBe(1); - at Resolver._throwModNotFoundError (../../packages/jest-resolve/build/resolver.js:427:11) + at Resolver._throwModNotFoundError (../../packages/jest-resolve/build/index.js:897:11) at Object. (node_modules/discord.js/src/index.js:21:12) at Object.require (__tests__/test.js:10:1)" `; diff --git a/e2e/__tests__/__snapshots__/resolveNoFileExtensions.test.ts.snap b/e2e/__tests__/__snapshots__/resolveNoFileExtensions.test.ts.snap index 98867dc0fce7..81e98a4380b1 100644 --- a/e2e/__tests__/__snapshots__/resolveNoFileExtensions.test.ts.snap +++ b/e2e/__tests__/__snapshots__/resolveNoFileExtensions.test.ts.snap @@ -37,7 +37,7 @@ exports[`show error message with matching files 1`] = ` | ^ 9 | - at Resolver._throwModNotFoundError (../../packages/jest-resolve/build/resolver.js:427:11) + at Resolver._throwModNotFoundError (../../packages/jest-resolve/build/index.js:897:11) at Object.require (index.js:8:18) at Object.require (__tests__/test.js:8:11)" `; diff --git a/e2e/__tests__/__snapshots__/showConfig.test.ts.snap b/e2e/__tests__/__snapshots__/showConfig.test.ts.snap index 79a0e38b919b..606362404459 100644 --- a/e2e/__tests__/__snapshots__/showConfig.test.ts.snap +++ b/e2e/__tests__/__snapshots__/showConfig.test.ts.snap @@ -74,7 +74,7 @@ exports[`--showConfig outputs config info and exits 1`] = ` "/node_modules/" ], "testRegex": [], - "testRunner": "<>/jest-circus/runner.js", + "testRunner": "<>/jest-circus/build/runner.js", "transform": [ [ "\\\\.[jt]sx?$", diff --git a/e2e/__tests__/__snapshots__/testFailingJasmine.test.ts.snap b/e2e/__tests__/__snapshots__/testFailingJasmine.test.ts.snap index a569f91ac1eb..4fbae264cd01 100644 --- a/e2e/__tests__/__snapshots__/testFailingJasmine.test.ts.snap +++ b/e2e/__tests__/__snapshots__/testFailingJasmine.test.ts.snap @@ -46,7 +46,7 @@ FAIL __tests__/worksWithConcurrentMode.test.js 15 | }); 16 | - at Function.failing (../../packages/jest-jasmine2/build/jasmineAsyncInstall.js:164:11) + at Function.failing (../../packages/jest-jasmine2/build/index.js:297:17) at Suite.failing (__tests__/worksWithConcurrentMode.test.js:13:17) at Object.describe (__tests__/worksWithConcurrentMode.test.js:8:1) @@ -80,7 +80,7 @@ FAIL __tests__/worksWithConcurrentOnlyMode.test.js 15 | }); 16 | - at Function.failing (../../packages/jest-jasmine2/build/jasmineAsyncInstall.js:164:11) + at Function.failing (../../packages/jest-jasmine2/build/index.js:297:17) at Suite.failing (__tests__/worksWithConcurrentOnlyMode.test.js:13:22) at Object.describe (__tests__/worksWithConcurrentOnlyMode.test.js:8:1) diff --git a/e2e/__tests__/__snapshots__/transform.test.ts.snap b/e2e/__tests__/__snapshots__/transform.test.ts.snap index ff6901ad7061..c4af677ae559 100644 --- a/e2e/__tests__/__snapshots__/transform.test.ts.snap +++ b/e2e/__tests__/__snapshots__/transform.test.ts.snap @@ -6,7 +6,7 @@ exports[`babel-jest ignored tells user to match ignored files 1`] = ` babel-jest: Babel ignores __tests__/ignoredFile.test.js - make sure to include the file in Jest's transformIgnorePatterns as well. - at assertLoadedBabelConfig (../../../packages/babel-jest/build/index.js:105:11)" + at assertLoadedBabelConfig (../../../packages/babel-jest/build/index.js:138:11)" `; exports[`babel-jest instruments only specific files and collects coverage 1`] = ` diff --git a/e2e/__tests__/stackTrace.test.ts b/e2e/__tests__/stackTrace.test.ts index 9dd58e731396..9aa61522caa2 100644 --- a/e2e/__tests__/stackTrace.test.ts +++ b/e2e/__tests__/stackTrace.test.ts @@ -81,7 +81,7 @@ describe('Stack Trace', () => { ); expect(stderr).toMatch( - /\s+at\s(?:.+?)\s\((?:.+?)jest-resolve\/build\/resolver\.js/, + /\s+at\s(?:.+?)\s\((?:.+?)jest-resolve\/build\/index\.js/, ); }); diff --git a/scripts/buildUtils.mjs b/scripts/buildUtils.mjs index 67ad80b0f9e7..049d2a0b50c8 100644 --- a/scripts/buildUtils.mjs +++ b/scripts/buildUtils.mjs @@ -267,6 +267,7 @@ export function createWebpackConfigs() { ], }, optimization: { + minimize: false, moduleIds: 'named', }, output: {