Battle-Tested in Production

Sveltest

Sveltest

A comprehensive collection of testing patterns and examples
for modern Svelte applications

Test Coverage
98%
Comprehensive testing
Performance
Fast
Lightning quick tests
Developer Experience
A+
Intuitive & powerful
Open Source

Community Driven

Sveltest is a community resource built by developers, for developers. Your contributions help make testing better for everyone in the Svelte ecosystem.

Contribute Code

Add new testing examples, improve existing patterns, or help with documentation. Every contribution makes the resource better.

View on GitHub

Report Issues

Found a bug or have a suggestion? Open an issue on GitHub. Your feedback helps us improve the testing experience.

Report Issue

Share Knowledge

Share your testing patterns, contribute examples from your projects, or help others learn through discussions.

Join Discussion

Join the Community

Help us build the most comprehensive Svelte testing resource

Features

Everything You Need

Comprehensive testing tools and examples for building robust Svelte applications

Cursor Rules

Pre-configured AI assistant rules for Cursor that enforce testing best practices automatically when editing test files

View Cursor Rules

Windsurf Rules

Modern rule system with trigger-based activation for Windsurf. Same comprehensive patterns optimized for advanced AI capabilities

View Windsurf Rules

Testing Types

Unit, integration, and component testing examples using Vitest and vitest-browser-svelte

Unit Tests
Integration
E2E

Best Practices

Learn testing best practices and patterns specific to Svelte applications

Patterns
Guidelines
Tips

Real-world Examples

Practical testing scenarios you'll encounter in production applications

Forms
APIs
Components

Ready to Start Testing?

Dive into our comprehensive examples and start building more reliable Svelte applications today.