-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Jest 25.1.0 Environment setup: SyntaxError: Cannot use import statement outside a module #9622
Comments
experiencing the same issue |
Hey, just to let you know, this solution got me up and running #9395 (comment) |
Any news on this ? Still having the following similar issue :
versions :
|
Transforming custom environment will be fixed by #8751, which will come in Jest 26. |
This doesn't work yet, pending jestjs/jest#9622 (Jest 26)
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
π Bug Report
Jest ^25.1.0 does not transform specified config files using babel-jest. According to this issue the functionality should be supported. Instead I am getting the following error message:
To Reproduce
Steps to reproduce the behavior:
jest.config.js
:./src/__tests__/config/setup.js
Run
npx jest --config jest.config.js --verbose --watch
Expected behavior
I would expect that the code would get run without errors.
envinfo
The text was updated successfully, but these errors were encountered: