made with Svelte

Svelte Component Test Recipes

Test Recipes using Vitest & Testing Library

Visit Site

Description

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."


Creator

David Peng
@davipon


Social Media Links

Cypress Svelte Unit Test Unit testing for Svelte Components
icon-eye-dark Created with Sketch. 1.440
Svelte(Kit) TypeScript Showcase Tips & Examples for working with Svelte(Kit) & TypeScript
icon-eye-dark Created with Sketch. 1.777
Sentry for Svelte Svelte Error & Performance Monitoring
icon-eye-dark Created with Sketch. 3.389
Weโ€™re hosting on Digital Ocean! ๐Ÿ’™ Try it today and get a free $100 credit.
Reactive Map List Example & Tutorial for a Reactive Scrolling Map Article
icon-eye-dark Created with Sketch. 2.501
Company Logo of Get Connected by Galaxy Digital
Fullstack Developer
Get Connected by Galaxy Digital / Asheville, NC
Company Logo of Kudoboard
Software Engineer I
Kudoboard / Denver / United States
Company Logo of Blackbear
Full-stack Developer (Laravel)
Blackbear / Hybrid / Schiphol-Rijk, Netherlands