-
-
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 hangs with stubbed process #5390
Comments
I don't know how far we can allow manipulating globals, but for this specific case of process.memoryUsage = undefined; I'm guessing that For your case, I understand it turns out to be a regression, but maybe you could also do: vi.stubGlobal('process', { ...process, server: false, client: true }); Or |
We could store reference of |
tinylibs/tinypool#83 fixes this issue. However there are still some |
Describe the bug
Vitest hangs (
npx vitest run
) if a test stubs the global process.After updating vitest from 0.34 to 1.4.0
The culprit is the stubbed process, if removed everything works as expected.
Reproduction
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: