-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
vitest will crash when using ffi-napi #2091
Comments
According to node-ffi-napi/node-ffi-napi#125 you cannot use it inside a worker thread. Vitest runs tests only inside worker threads. |
Is there any workaround for this? Or do I have to ditch vitest when testing modules using |
Use |
Vitest 1.0.0-beta has now If the code you are testing is incompatible with |
Awesome, thanks @AriPerkkio! Using |
Describe the bug
when using
ffi-napi
module, vitest cannot fully finish its jobafter i remove file include ffi-napi, it becomes normal again
Reproduction
In any testing file add
const ffi = require('ffi-napi')
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: