Skip to content

Commit

Permalink
chore: link to ESM docs on syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Oct 31, 2020
1 parent a94730c commit 44ca32f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/jest-transform/src/enhanceUnexpectedTokenMessage.ts
Expand Up @@ -42,6 +42,9 @@ This usually means that you are trying to import a file which Jest cannot parse,
By default, if Jest sees a Babel config, it will use that to transform your files, ignoring "node_modules".
Here's what you can do:
${DOT}If you are trying to use ECMAScript Modules, see ${chalk.underline(
'https://jestjs.io/docs/en/ecmascript-modules',
)} for how to enable it.
${DOT}To have some of your "node_modules" files transformed, you can specify a custom ${chalk.bold(
'"transformIgnorePatterns"',
)} in your config.
Expand Down

0 comments on commit 44ca32f

Please sign in to comment.