-
-
Notifications
You must be signed in to change notification settings - Fork 82
@swc-node/jest needs install @swc/helpers ? #683
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
Comments
I noticed this as well. It would be best to add as a dependency or peer dependency. |
Same issue here. |
Meanwhile, as @swc/helpers is a pure esm module, it requires jest to be configured as esm enabled. |
I ran into this as well (because of the pure ESM bit). It's technically an @swc/core thing, but @swc-node/jest explicitly enables swc-node/packages/core/index.ts Line 38 in 83d5f5e
To inline the helpers, you can pass the module.exports = {
transform: {
'^.+\\.(t|j)sx?$': [
'@swc-node/jest',
{ swc: { jsc: { externalHelpers: false } } }
]
}
} Unfortunately, passing any of the |
Bump @swc-node/jest from 1.5.5 to 1.5.6, has some errors.
I try
npm i -D @swc/helpers
, then re-runnpm t
is successfully.I think better include
@swc/helpers
to peerDependencies.The text was updated successfully, but these errors were encountered: