Skip to content

Commit

Permalink
fix(transformer): correct url in error message (#13483)
Browse files Browse the repository at this point in the history
  • Loading branch information
moonrailgun authored Oct 21, 2022
1 parent 571c940 commit a1a2c20
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
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

0 comments on commit a1a2c20

Please sign in to comment.