Skip to content

Commit 44ca32f

Browse files
committed
chore: link to ESM docs on syntax error
1 parent a94730c commit 44ca32f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/jest-transform/src/enhanceUnexpectedTokenMessage.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ This usually means that you are trying to import a file which Jest cannot parse,
4242
By default, if Jest sees a Babel config, it will use that to transform your files, ignoring "node_modules".
4343
4444
Here's what you can do:
45+
${DOT}If you are trying to use ECMAScript Modules, see ${chalk.underline(
46+
'https://jestjs.io/docs/en/ecmascript-modules',
47+
)} for how to enable it.
4548
${DOT}To have some of your "node_modules" files transformed, you can specify a custom ${chalk.bold(
4649
'"transformIgnorePatterns"',
4750
)} in your config.

0 commit comments

Comments
 (0)