From 0f8dde7b04d0d7c28620b9cdb93f68a0938e5171 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Sat, 22 Oct 2022 00:34:49 +0800 Subject: [PATCH 1/3] docs: fix incorrect url in latest document. not have this path. --- packages/jest-transform/src/runtimeErrorsAndWarnings.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/jest-transform/src/runtimeErrorsAndWarnings.ts b/packages/jest-transform/src/runtimeErrorsAndWarnings.ts index 2431dbfc67b8..72f80a68d0b0 100644 --- a/packages/jest-transform/src/runtimeErrorsAndWarnings.ts +++ b/packages/jest-transform/src/runtimeErrorsAndWarnings.ts @@ -17,7 +17,7 @@ const DOCUMENTATION_NOTE = ` ${chalk.bold( const UPGRADE_NOTE = ` ${chalk.bold( 'This error may be caused by a breaking change in Jest 28:', )} - https://jestjs.io/docs/upgrading-to-jest28#transformer + https://jestjs.io/docs/28.x/upgrading-to-jest28#transformer `; export const makeInvalidReturnValueError = (transformPath: string): string => From 26bd2582e110dbf556ce4b28855f24d825ed4249 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Fri, 21 Oct 2022 18:56:53 +0200 Subject: [PATCH 2/3] snaps --- .../__snapshots__/ScriptTransformer.test.ts.snap | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/jest-transform/src/__tests__/__snapshots__/ScriptTransformer.test.ts.snap b/packages/jest-transform/src/__tests__/__snapshots__/ScriptTransformer.test.ts.snap index 14a7c3379e61..b5b29deb331f 100644 --- a/packages/jest-transform/src/__tests__/__snapshots__/ScriptTransformer.test.ts.snap +++ b/packages/jest-transform/src/__tests__/__snapshots__/ScriptTransformer.test.ts.snap @@ -360,7 +360,7 @@ exports[`ScriptTransformer throws an error if \`process\` doesn't return an obje should return an object or a Promise resolving to an object. The object must have \`code\` property with a string of processed code. This error may be caused by a breaking change in Jest 28: - https://jestjs.io/docs/upgrading-to-jest28#transformer + https://jestjs.io/docs/28.x/upgrading-to-jest28#transformer Code Transformation Documentation: https://jestjs.io/docs/code-transformation " @@ -373,7 +373,7 @@ exports[`ScriptTransformer throws an error if \`process\` doesn't return an obje should return an object or a Promise resolving to an object. The object must have \`code\` property with a string of processed code. This error may be caused by a breaking change in Jest 28: - https://jestjs.io/docs/upgrading-to-jest28#transformer + https://jestjs.io/docs/28.x/upgrading-to-jest28#transformer Code Transformation Documentation: https://jestjs.io/docs/code-transformation " @@ -386,7 +386,7 @@ exports[`ScriptTransformer throws an error if \`process\` doesn't return an obje should return an object or a Promise resolving to an object. The object must have \`code\` property with a string of processed code. This error may be caused by a breaking change in Jest 28: - https://jestjs.io/docs/upgrading-to-jest28#transformer + https://jestjs.io/docs/28.x/upgrading-to-jest28#transformer Code Transformation Documentation: https://jestjs.io/docs/code-transformation " @@ -399,7 +399,7 @@ exports[`ScriptTransformer throws an error if \`process\` doesn't return an obje should return an object or a Promise resolving to an object. The object must have \`code\` property with a string of processed code. This error may be caused by a breaking change in Jest 28: - https://jestjs.io/docs/upgrading-to-jest28#transformer + https://jestjs.io/docs/28.x/upgrading-to-jest28#transformer Code Transformation Documentation: https://jestjs.io/docs/code-transformation " @@ -412,7 +412,7 @@ exports[`ScriptTransformer throws an error if \`processAsync\` doesn't return a should return an object or a Promise resolving to an object. The object must have \`code\` property with a string of processed code. This error may be caused by a breaking change in Jest 28: - https://jestjs.io/docs/upgrading-to-jest28#transformer + https://jestjs.io/docs/28.x/upgrading-to-jest28#transformer Code Transformation Documentation: https://jestjs.io/docs/code-transformation " @@ -425,7 +425,7 @@ exports[`ScriptTransformer throws an error if \`processAsync\` doesn't return a should return an object or a Promise resolving to an object. The object must have \`code\` property with a string of processed code. This error may be caused by a breaking change in Jest 28: - https://jestjs.io/docs/upgrading-to-jest28#transformer + https://jestjs.io/docs/28.x/upgrading-to-jest28#transformer Code Transformation Documentation: https://jestjs.io/docs/code-transformation " @@ -438,7 +438,7 @@ exports[`ScriptTransformer throws an error if \`processAsync\` doesn't return a should return an object or a Promise resolving to an object. The object must have \`code\` property with a string of processed code. This error may be caused by a breaking change in Jest 28: - https://jestjs.io/docs/upgrading-to-jest28#transformer + https://jestjs.io/docs/28.x/upgrading-to-jest28#transformer Code Transformation Documentation: https://jestjs.io/docs/code-transformation " @@ -451,7 +451,7 @@ exports[`ScriptTransformer throws an error if \`processAsync\` doesn't return a should return an object or a Promise resolving to an object. The object must have \`code\` property with a string of processed code. This error may be caused by a breaking change in Jest 28: - https://jestjs.io/docs/upgrading-to-jest28#transformer + https://jestjs.io/docs/28.x/upgrading-to-jest28#transformer Code Transformation Documentation: https://jestjs.io/docs/code-transformation " From 9885b1f5a28dd22b6ba137151245ccb0f293dd80 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Fri, 21 Oct 2022 18:58:11 +0200 Subject: [PATCH 3/3] changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 906e1998ec31..1e903f387072 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ ### Chore & Maintenance +- `[docs]` Update link to Jest 28 upgrade guide in error message ([#13483](https://github.com/facebook/jest/pull/13483)) + ### Performance ## 29.2.1