[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: don't panic on empty files in node_modules

Vladimir Sheremet (May 2, 2024, 10:52 AM +0200) 40c299fe c9e68ced

+1 -1
+1 -1
packages/vitest/src/node/pools/rpc.ts
··· 34 34 if ('id' in result && typeof result.id === 'string') 35 35 return { id: result.id as string } 36 36 37 - if (!code) 37 + if (code == null) 38 38 throw new Error(`Failed to fetch module ${id}`) 39 39 40 40 const dir = join(project.tmpDir, transformMode)