Vitest >=0.31.2 throws error cannot find package '__sveltekit'
in SvelteKit project
#3483
Closed
6 tasks done
Describe the bug
After updating to
vitest
/vite-node
0.31.2, I can't run my tests anymore. Instead, I get this error:I'm not sure if it's related, but there has been a similar looking issue in the past: sveltejs/kit#9162
Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-byyurb?file=test%2Fbasic.test.ts,package.json&initialPath=__vitest__/
npm run test:run
to see the errorTo make the tests run:
0.30.1
npm i
npm run test:run
, they should passSystem Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: