[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
12

Configure Feed

Select the types of activity you want to include in your feed.

fix: print ssrTransform error (#6885)

authored by

Hiroshi Ogawa and committed by
GitHub
(Nov 12, 2024, 1:45 PM +0100) 4c96cce7 98f76ea7

+4 -1
+4 -1
packages/vitest/src/node/pools/rpc.ts
··· 110 110 111 111 // serialize rollup error on server to preserve details as a test error 112 112 function handleRollupError(e: unknown): never { 113 - if (e instanceof Error && 'plugin' in e) { 113 + if ( 114 + e instanceof Error 115 + && ('plugin' in e || 'frame' in e || 'id' in e) 116 + ) { 114 117 // eslint-disable-next-line no-throw-literal 115 118 throw { 116 119 name: e.name,