Skip to content

vitest will crash when using ffi-napi #2091

@LizardLiang

Description

@LizardLiang

Describe the bug

when using ffi-napi module, vitest cannot fully finish its job
image

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

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.4

Used Package Manager

npm

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions