-
Notifications
You must be signed in to change notification settings - Fork 37
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
@swc/jest incompatible with arrays in .swcrc #115
Comments
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This issue is definitely real. However, here is a workaround that can allow @swc/jest to work until this is more permanently resolved. This workaround mirrors what is described in the swc-loader issue that OP linked to.
|
I hadnt had this issue until upgrading to transform: {
"^.+\\.(t|j)sx?$": "@swc/jest",
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Similar issue in swc-loader
I'm not exactly sure where the linked documentation in that other issue went, I could have sworn it was on the swc website - but swc supports the
.swcrc
being an array of configurations to allow one configuration to parse both TS and JS.@swc/jest assumes that the swcrc is an object, so tries to spread values into it, causing the configuration to get all mangled since an array is spread into an object.
Version: 0.2.22
.swcrc:
The text was updated successfully, but these errors were encountered: