You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Open
6 tasks done
dimaMachina opened this issue
Dec 14, 2024
· 4 comments
TypeError: 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
❯ Function.from node:buffer:319:9
❯ deserialize ../../node_modules/vitest/dist/chunks/resolveConfig.RxKrDli4.js:6716:67
❯ EventEmitter.onMessage ../../node_modules/vitest/dist/chunks/index.68735LiX.js:82:17
❯ EventEmitter.emit node:events:519:28
❯ Object.postMessage ../../node_modules/vitest/dist/chunks/resolveConfig.RxKrDli4.js:6711:39
❯ ChildProcess.<anonymous> ../../node_modules/tinypool/dist/index.js:216:30
❯ ChildProcess.emit node:events:519:28
❯ emit node:internal/child_process:951:14
❯ process.processTicksAndRejections node:internal/process/task_queues:83:21
Hello @dimaMachina. Please provide a minimal reproduction using a GitHub repository or StackBlitz (you can also use examples). Issues marked with needs reproduction will be closed if they have no activity within 3 days.
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 process here somehow?
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 process here somehow?
idk, current tests worked fine with jest but not with vitest
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: