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
I have been stumped on getting started. Some simple guidance is greatly appreciated.
I have the latest sveltekit which uses a plugin in vite.config.js and vitest/config + defineConfig in the same file (vite.config.js). Vitest does not find my test exclude patterns. In https://vitest.dev/config/#configuring-vitest , are the first two file examples are both examples of a vitest.config.ts file? I have no clue why I should or should not use defineConfig from vite or vitest and I'm not 100% certain about what file the example is referring too.
My confusion is probably because I'm coming from in from the svelte background and not from vite.. The need for testing has arised before needing to dig into vite. Also, I have visited this several times and looking at vite's config. Just a bit complex still, so a few short clarifications in the vitest config may be really helpful in cases like mine.. I have tried a lot of different things off and on over time test excludes have never worked.
Looks like vitest did a fantastic job on the config though. It is just getting started has been a road block.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have been stumped on getting started. Some simple guidance is greatly appreciated.
I have the latest sveltekit which uses a plugin in vite.config.js and vitest/config + defineConfig in the same file (vite.config.js). Vitest does not find my test exclude patterns. In https://vitest.dev/config/#configuring-vitest , are the first two file examples are both examples of a vitest.config.ts file? I have no clue why I should or should not use defineConfig from vite or vitest and I'm not 100% certain about what file the example is referring too.
My confusion is probably because I'm coming from in from the svelte background and not from vite.. The need for testing has arised before needing to dig into vite. Also, I have visited this several times and looking at vite's config. Just a bit complex still, so a few short clarifications in the vitest config may be really helpful in cases like mine.. I have tried a lot of different things off and on over time test excludes have never worked.
Looks like vitest did a fantastic job on the config though. It is just getting started has been a road block.
Beta Was this translation helpful? Give feedback.
All reactions