You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Failed to deserialize buffer as swc::config::Options
JSON: {"0":{"test":".*.tsx?$","exclude": etc
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.
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: