-
-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
segmentation fault in import("globby") when running under jest since 10.0 #646
Comments
I'm experiencing the same, except I'm simply copying files during build process 🤔 |
Yes, bug in jest and Node.js, sorry we can't fix it here, please read and you can ping Node.js/v8 developer in nodejs/node#35889, we switched to ESM version globby because new version in ESM and we should move to ESM |
But you may block people from using the latest version if you have features or bug fix afterwards. |
But how I should fix it? I can't fix v8/Node.js bug here, revert to non ESM old version is not acceptable |
Thanks @alexander-akait for the info! |
@mariusvirb For tests purpose you can bundle/transpile globby to commonjs, we use it https://github.com/webpack-contrib/copy-webpack-plugin/blob/master/globalSetup.js#L30 for testing, yes this is a very sad problem, my comment on it nodejs/node#35889 (comment) |
thanks @alexander-akait it's not a high priority for us right now, but I'll definitely take a look! Seems a bunch of organizations are affected! |
Bug report
My jest test will create webpack and webpackDevServer. And my webpack config will use copy-webpack-plugin. After upgrading to 10.0, it does not running any tests. I found that import("globby") causing this issue
I think it is related to this issue nodejs/node#35889
On this consumer side, this package lives in node_modules and jest cannot transform it. Maybe you should transform it before publish
Actual Behavior
When I use
node --experimental-vm-modules ./node_modules/jest/bin/jest.js
it shows
Expected Behavior
it should not have segmentation fault
The text was updated successfully, but these errors were encountered: