Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(transformer): correct url in error message #13483

Merged
merged 3 commits into from Oct 21, 2022
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
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
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
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