-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
205 to 206 update breaks jest tests with star imports #5204
Comments
Closing as duplicate of lots of issues. |
I think you should elaborate a bit why you closed this and which issues this duplicates. |
See #5205 |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Describe the bug
Ever since I updated swc core from 205 to 206 my jest tests break with message:
I assume it is because of this commit
fa68cbd
I provided a screenshot with a diff of transformed output code
![swc-repro](https://user-images.githubusercontent.com/31451544/178927080-10da04c2-515a-4a85-90f4-036842d40735.PNG)
between 205 and 206
Seems like 206 now adds the extra
I have a hunch that it could be related to the failure.
I have tried setting the module to commonjs in swc config but still didn't work
Input code
Config
Playground link
No response
Expected behavior
I would expect since I changed nothing in swc config that tests still work.
Or was there some change that requires config update?
Actual behavior
Tests fail.
Version
1.2.206
Additional context
No response
The text was updated successfully, but these errors were encountered: