# Sveltest Testing Documentation > Comprehensive vitest-browser-svelte testing patterns for modern Svelte 5 applications. Real-world examples demonstrating client-server alignment, component testing in actual browsers, SSR validation, and migration from @testing-library/svelte. ## Getting Started - [Installation & Setup](/docs/getting-started): Initial project setup, dependencies, and configuration - [Your First Test](/docs/getting-started#first-test): Writing your first component test - [Project Structure](/docs/getting-started#structure): Recommended file organization ## Testing Patterns - [Component Testing](/docs/testing-patterns#component): Real browser testing with vitest-browser-svelte - [SSR Testing](/docs/testing-patterns#ssr): Server-side rendering validation - [Server Testing](/docs/testing-patterns#server): API routes, hooks, and server functions - [Integration Testing](/docs/testing-patterns#integration): End-to-end testing patterns ## API Reference - [Essential Imports](/docs/api-reference#imports): Core testing utilities and functions - [Locators & Queries](/docs/api-reference#locators): Finding elements with semantic queries - [Assertions](/docs/api-reference#assertions): Testing element states and properties - [User Interactions](/docs/api-reference#interactions): Simulating user events ## Migration Guide - [From @testing-library/svelte](/docs/migration-guide): Complete step-by-step migration process - [Common Patterns](/docs/migration-guide#patterns): Before/after code examples - [Troubleshooting Migration](/docs/migration-guide#troubleshooting): Solving common migration issues ## Best Practices - [Foundation First Approach](/docs/best-practices#foundation-first): 100% test coverage strategy - [Accessibility Testing](/docs/best-practices#accessibility): Semantic queries and ARIA testing - [Performance Optimization](/docs/best-practices#performance): Fast test execution patterns - [Team Collaboration](/docs/best-practices#team): AI assistant rules and conventions ## Troubleshooting - [Common Errors](/docs/troubleshooting#errors): Solutions for frequent issues - [Environment Setup](/docs/troubleshooting#environment): Configuration problems - [Browser Issues](/docs/troubleshooting#browser): Playwright and browser-specific fixes ## Optional - [Example Components](/examples): Live component implementations - [GitHub Repository](https://github.com/spences10/sveltest): Full source code - [Blog Post](https://scottspence.com/posts/migrating-from-testing-library-svelte-to-vitest-browser-svelte): Migration story ## Available LLM Documentation Formats - [Index](/llms.txt): Navigation links and structure overview - [Full Documentation](/llms-full.txt): Complete content in one file - [Medium Context](/llms-medium.txt): Compressed for medium context windows - [Small Context](/llms-small.txt): Highly compressed for small context windows - [API Reference](/llms-api.txt): Testing utilities and functions only - [Code Examples](/llms-examples.txt): Curated code patterns - [Context Format](/llms-ctx.txt): XML structure without optional content - [Full Context Format](/llms-ctx-full.txt): Complete XML structure