-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
vitest will crash when using ffi-napi #2091
Copy link
Copy link
Closed
Labels
Description
Describe the bug
when using ffi-napi module, vitest cannot fully finish its job

after i remove file include ffi-napi, it becomes normal again

Reproduction
In any testing file add
const ffi = require('ffi-napi')
System Info
System:
OS: Windows 10 10.0.19043
CPU: (16) x64 Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz
Memory: 16.55 GB / 31.80 GB
Binaries:
Node: 16.17.0 - ~\scoop\apps\nvm\current\nodejs\nodejs\node.EXE
npm: 8.15.0 - ~\scoop\apps\nvm\current\nodejs\nodejs\npm.CMD
Browsers:
Edge: Spartan (44.19041.1266.0), Chromium (105.0.1343.50)
Internet Explorer: 11.0.19041.1566
npmPackages:
@vitejs/plugin-react: ^2.1.0 => 2.1.0
vite: ^3.1.0 => 3.1.3
vitest: ^0.23.4 => 0.23.4Used Package Manager
npm
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable