made with Svelte

Svelte Component Test Recipes

Test Recipes using Vitest & Testing Library

Visit Site


Test Recipes using Vitest & Testing Library

"Svelte component test recipes using Vitest & Testing Library with TypeScript.

In this repo, we'll use vitest, @testing-library/svelte, and svelte-htm to test Svelte components that seemed to be hard to test. Such as two-way bindings, name slots, Context API, ...etc.

As a Svelte advocate, the fantastic DX is one of the reasons I love Svelte. While component testing is something that I think we can still improve over time."


David Peng

Social Media Links

Svelte Handbook E-Book that helps you to learn Svelte
icon-eye-dark Created with Sketch. 11.028
Svelte Jester Jest Transformer
icon-eye-dark Created with Sketch. 1.024
Sentry for Svelte Svelte Error & Performance Monitoring
🧡 Sponsored by Friends
We’re hosting on Digital Ocean! 💙 Try it today and get a free $100 credit.
icon-eye-dark Created with Sketch. 1.306
Tap Rpc gRPC Development & Testing Tool
icon-eye-dark Created with Sketch. 1.002