Skip to content

Cannot use import statement outside a module #426

Answered by sholladay
HarryOMalley asked this question in Q&A
Discussion options

You must be logged in to vote

Jest dose some weird transform stuff to your dependencies, which breaks ES modules.

They have experimental support for turning that stuff off, finally.

https://jestjs.io/docs/ecmascript-modules

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@HarryOMalley
Comment options

Answer selected by HarryOMalley
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants