-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Template Unit Tests #4143
Comments
the way you can use vitest with sveltekit is going to improve. As long as it isn't stable (see also https://github.com/nickbreaton/vitest-svelte-kit#stability) it's not suitable as an option in create-svelte. In the interim, a svelte-adder could be implemented: svelte-add/svelte-add#191 |
I hear you. It's a bit of a chicken and the egg scenario. Kit is still in beta and I'm thinking more about man-hours spent trying to get Jest working with it as opposed to growing together with Vitest. |
I think writing an adder for https://github.com/svelte-add/svelte-add is the best way to solve the chicken-and-egg problem, or if not solve it completely at least get around the largest issue. Things shouldn't go into |
Closing due to low priority to reduce noise. Check out this Discord server for chat about configuring Vitest. 👍 |
Further discussion and voting #5285 |
Describe the problem
When scaffolding a new project I'd like a way to get started with Unit Testing using Vitest. This follows from the recent introduction of a template option to add Playwright.
Describe the proposed solution
Like with Playright, add an option to add Vitest for unit testing during project scaffolding.
Alternatives considered
Following the README instructions for https://github.com/nickbreaton/vitest-svelte-kit during set-up.
Importance
nice to have
Additional Information
Leaning into Vitest as opposed to Jest will help code created with SvelteKit projects to be more streamlined given an integration with the Vite built pipeline and help eliminate years of potentially inapplicable search results for React- and Vue-based test configurations.
The text was updated successfully, but these errors were encountered: