-
-
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
The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received an instance of Object #7082
Comments
Hello @dimaMachina. Please provide a minimal reproduction using a GitHub repository or StackBlitz (you can also use examples). Issues marked with |
Probably https://stackblitz.com/edit/vitest-dev-vitest-iqv9ueqx?file=test%2Frepro.test.ts import { test } from 'vitest';
test('repro', async () => {
process.send!({ repro: 'boom!!' });
}); From your sample code, I'm not sure if actual IPC is necessary since you didn't manage a parent process. Maybe isn't it intended to mock out reader = new IPCMessageReader(process);
writer = new IPCMessageWriter(process); |
idk, current tests worked fine with jest but not with vitest |
Nothing to add really. Vitest sends a lot of events back and forth. Jest might not do that. The |
From what I can guess, I'm not sure if the tests there are serving much purpose since it's only checking Let me close this for now. If you have other problems with migration, please feel free to share in new issues or discussions. |
Describe the bug
I am migrating tests from jest to vitest and ran into an error from this line
vitest/packages/vitest/src/node/pools/forks.ts
Line 33 in 4e60333
vitest/packages/vitest/src/node/pools/vmForks.ts
Line 38 in 4e60333
here is the stack trace
Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-qyahuvyc?file=test%2Fbasic.test.ts
v argument in my case is
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: