svelte-testing-library
Simple and complete Svelte testing utilities that encourage good testing practices.
Purpose
- Provides lightweight testing utilities specifically for Svelte components
- Encourages testing practices that resemble how software is actually used
- Built on top of
svelte
and@testing-library/dom
Key Features
- Supports Svelte versions 3, 4, and 5
- Recommended to use with [Vitest](https://vitest.dev/fa-solid fa-up-right-from-square) test runner
- Includes auto-cleanup functionality (can be disabled)
- Provides core testing functions like
render
,cleanup
, andsetup
Documentation
Full documentation available at: [Testing Library Docs](https://testing-library.com/docs/svelte-testing-library/introfa-solid fa-up-right-from-square)
Community Support
- [Discord](https://discord.gg/testing-libraryfa-solid fa-up-right-from-square)
- [Stack Overflow](https://stackoverflow.com/questions/tagged/svelte-testing-libraryfa-solid fa-up-right-from-square)
testingsvelte
Featured Stories
No featured articles here. Navigate to an article, then pick the Feature on menu button