Skip to content
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

testing of client and server code with vitest #270

Open
benmccann opened this issue Nov 4, 2024 · 1 comment · May be fixed by #311
Open

testing of client and server code with vitest #270

benmccann opened this issue Nov 4, 2024 · 1 comment · May be fixed by #311
Assignees
Labels
enhancement New feature or request pkg:add sv add

Comments

@benmccann
Copy link
Member

test:unit:client could run .svelte and .svelte.js/.svelte.ts files with jsdom and svelte testing library (which sets resolve: browser)

test:unit:server could run the remaining files without those

@benmccann
Copy link
Member Author

Feedback from the vitest team was to use their workspaces feature for this: https://github.com/dominikg/vitest-example-svelte5/blob/main/vitest.workspace.ts

@manuel3108 manuel3108 self-assigned this Nov 15, 2024
@manuel3108 manuel3108 added enhancement New feature or request pkg:add sv add labels Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pkg:add sv add
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants