It's probably because you are in svelte 5..you need to set the runtime to browser...if you create a brand new project with `sv` and include vitest you can see a vitest.workspace.ts next to the viteconfig: you can copy that to setup your project so that you can test .svelte.js files next to .ja files
March 3, 2025 at 7:20 PM
It's probably because you are in svelte 5..you need to set the runtime to browser...if you create a brand new project with `sv` and include vitest you can see a vitest.workspace.ts next to the viteconfig: you can copy that to setup your project so that you can test .svelte.js files next to .ja files