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
Using snapshotFormat.plugins in vite.config.ts results in this error. The error is very different on stackblitz but I think this local error shows more relevant info.
DataCloneError: (val) => Array.isArray(val) could not be cloned.
❯ new DOMException node:internal/per_context/domexception:53:5
❯ WorkerInfo.postTask node_modules/.pnpm/tinypool@0.7.0/node_modules/tinypool/dist/esm/index.js:440:17
❯ ThreadPool.runTask node_modules/.pnpm/tinypool@0.7.0/node_modules/tinypool/dist/esm/index.js:732:16
❯ Tinypool.run node_modules/.pnpm/tinypool@0.7.0/node_modules/tinypool/dist/esm/index.js:808:38
❯ runFiles node_modules/.pnpm/vitest@0.34.4/node_modules/vitest/dist/vendor-node.b14cb9ad.js:7328:20
❯ node_modules/.pnpm/vitest@0.34.4/node_modules/vitest/dist/vendor-node.b14cb9ad.js:7370:98
❯ Object.runTests node_modules/.pnpm/vitest@0.34.4/node_modules/vitest/dist/vendor-node.b14cb9ad.js:7370:58
❯ Object.runTests node_modules/.pnpm/vitest@0.34.4/node_modules/vitest/dist/vendor-node.b14cb9ad.js:7661:5
If run withvitest --threads=false, a different error is shown
FAIL test/suite.test.ts > suite name > snapshot
PrettyFormatPluginError: plugins[p].test is not a function
❯ findPlugin file:/home/projects/vitest-dev-vitest-vr4kaa/node_modules/pretty-format/build/index.js:302:22
❯ format file:/home/projects/vitest-dev-vitest-vr4kaa/node_modules/pretty-format/build/index.js:451:32
❯ file:/home/projects/vitest-dev-vitest-vr4kaa/test/suite.test.ts:11:50
Describe the bug
Using
snapshotFormat.plugins
invite.config.ts
results in this error. The error is very different on stackblitz but I think this local error shows more relevant info.If run with
vitest --threads=false
, a different error is shownReproduction
https://stackblitz.com/edit/vitest-dev-vitest-vr4kaa?file=vite.config.ts
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: