Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ exports[`ScriptTransformer throws an error if \`process\` doesn't return an obje
<red> should return an object or a Promise resolving to an object. The object </color>
<red> must have \`code\` property with a string of processed code.</color>
<red> <bold>This error may be caused by a breaking change in Jest 28:</intensity></color>
<red> https://jestjs.io/docs/upgrading-to-jest28#transformer</color>
<red> https://jestjs.io/docs/28.x/upgrading-to-jest28#transformer</color>
<red> <bold>Code Transformation Documentation:</intensity></color>
<red> https://jestjs.io/docs/code-transformation</color>
<red></color>"
Expand All @@ -373,7 +373,7 @@ exports[`ScriptTransformer throws an error if \`process\` doesn't return an obje
<red> should return an object or a Promise resolving to an object. The object </color>
<red> must have \`code\` property with a string of processed code.</color>
<red> <bold>This error may be caused by a breaking change in Jest 28:</intensity></color>
<red> https://jestjs.io/docs/upgrading-to-jest28#transformer</color>
<red> https://jestjs.io/docs/28.x/upgrading-to-jest28#transformer</color>
<red> <bold>Code Transformation Documentation:</intensity></color>
<red> https://jestjs.io/docs/code-transformation</color>
<red></color>"
Expand All @@ -386,7 +386,7 @@ exports[`ScriptTransformer throws an error if \`process\` doesn't return an obje
<red> should return an object or a Promise resolving to an object. The object </color>
<red> must have \`code\` property with a string of processed code.</color>
<red> <bold>This error may be caused by a breaking change in Jest 28:</intensity></color>
<red> https://jestjs.io/docs/upgrading-to-jest28#transformer</color>
<red> https://jestjs.io/docs/28.x/upgrading-to-jest28#transformer</color>
<red> <bold>Code Transformation Documentation:</intensity></color>
<red> https://jestjs.io/docs/code-transformation</color>
<red></color>"
Expand All @@ -399,7 +399,7 @@ exports[`ScriptTransformer throws an error if \`process\` doesn't return an obje
<red> should return an object or a Promise resolving to an object. The object </color>
<red> must have \`code\` property with a string of processed code.</color>
<red> <bold>This error may be caused by a breaking change in Jest 28:</intensity></color>
<red> https://jestjs.io/docs/upgrading-to-jest28#transformer</color>
<red> https://jestjs.io/docs/28.x/upgrading-to-jest28#transformer</color>
<red> <bold>Code Transformation Documentation:</intensity></color>
<red> https://jestjs.io/docs/code-transformation</color>
<red></color>"
Expand All @@ -412,7 +412,7 @@ exports[`ScriptTransformer throws an error if \`processAsync\` doesn't return a
<red> should return an object or a Promise resolving to an object. The object </color>
<red> must have \`code\` property with a string of processed code.</color>
<red> <bold>This error may be caused by a breaking change in Jest 28:</intensity></color>
<red> https://jestjs.io/docs/upgrading-to-jest28#transformer</color>
<red> https://jestjs.io/docs/28.x/upgrading-to-jest28#transformer</color>
<red> <bold>Code Transformation Documentation:</intensity></color>
<red> https://jestjs.io/docs/code-transformation</color>
<red></color>"
Expand All @@ -425,7 +425,7 @@ exports[`ScriptTransformer throws an error if \`processAsync\` doesn't return a
<red> should return an object or a Promise resolving to an object. The object </color>
<red> must have \`code\` property with a string of processed code.</color>
<red> <bold>This error may be caused by a breaking change in Jest 28:</intensity></color>
<red> https://jestjs.io/docs/upgrading-to-jest28#transformer</color>
<red> https://jestjs.io/docs/28.x/upgrading-to-jest28#transformer</color>
<red> <bold>Code Transformation Documentation:</intensity></color>
<red> https://jestjs.io/docs/code-transformation</color>
<red></color>"
Expand All @@ -438,7 +438,7 @@ exports[`ScriptTransformer throws an error if \`processAsync\` doesn't return a
<red> should return an object or a Promise resolving to an object. The object </color>
<red> must have \`code\` property with a string of processed code.</color>
<red> <bold>This error may be caused by a breaking change in Jest 28:</intensity></color>
<red> https://jestjs.io/docs/upgrading-to-jest28#transformer</color>
<red> https://jestjs.io/docs/28.x/upgrading-to-jest28#transformer</color>
<red> <bold>Code Transformation Documentation:</intensity></color>
<red> https://jestjs.io/docs/code-transformation</color>
<red></color>"
Expand All @@ -451,7 +451,7 @@ exports[`ScriptTransformer throws an error if \`processAsync\` doesn't return a
<red> should return an object or a Promise resolving to an object. The object </color>
<red> must have \`code\` property with a string of processed code.</color>
<red> <bold>This error may be caused by a breaking change in Jest 28:</intensity></color>
<red> https://jestjs.io/docs/upgrading-to-jest28#transformer</color>
<red> https://jestjs.io/docs/28.x/upgrading-to-jest28#transformer</color>
<red> <bold>Code Transformation Documentation:</intensity></color>
<red> https://jestjs.io/docs/code-transformation</color>
<red></color>"
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-transform/src/runtimeErrorsAndWarnings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 =>
Expand Down