swc/jest not support array.with
PeterChen1997 opened this issue · comments
Peter Chen commented
Describe the bug
It's a feature in es2023, I changed my swcrc file's target, but I still get the problem...
Input code
No response
Config
[
{
"test": ".*.tsx?$",
"jsc": {
"parser": {
"syntax": "typescript",
"decorators": true,
"dynamicImport": true,
"tsx": true
},
"transform": {
"legacyDecorator": true,
"decoratorMetadata": true,
"react": {
"runtime": "automatic",
"refresh": true
}
},
"externalHelpers": true,
"target": "es2023"
}
},
{
"test": ".*.js$",
"jsc": {
"parser": {
"syntax": "ecmascript",
"decorators": true,
"dynamicImport": true
},
"transform": {
"legacyDecorator": true,
"decoratorMetadata": true
},
"externalHelpers": true,
"target": "es2023"
}
}
]
Playground link (or link to the minimal reproduction)
SWC Info output
No response
Expected behavior
support properly
Actual behavior
No response
Version
0.2.26
Additional context
No response
Denis Pushkarev commented
You missed
"env": {
"mode": "usage",
"coreJs": "3.37"
}
Peter Chen commented
Thx!
SWC Bot commented
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.