Tooling, Testing & Production
From component to shipped app
Section titled “From component to shipped app”You know Svelte the language now. This module is the workflow around it: how you scaffold a project, keep it type-safe, prove it works, and get it in front of users. None of it is Svelte-specific magic — it’s the ordinary craft of a Vite-based project, with the Svelte-flavoured tools called out.
What this module covers
Section titled “What this module covers”| Lesson | What you’ll learn |
|---|---|
| Project & tooling | Scaffolding with sv create, Vite, and svelte-check |
| TypeScript with Svelte | Typing runes, props, snippets, and generic components |
| Testing | Vitest, @testing-library/svelte, and Playwright |
| Performance & deploy | Small output, adapters, prerendering, and production builds |
The toolchain at a glance
Section titled “The toolchain at a glance”flowchart LR sv["sv CLI: scaffold"] --> vite["Vite: dev server + build"] vite --> check["svelte-check: types + diagnostics"] vite --> test["Vitest + Playwright: tests"] vite --> adapter["SvelteKit adapter: deploy target"] adapter --> prod["production site"]
The through-line: Svelte compiles to small output by default, and the surrounding tools (Vite, svelte-check, Vitest, adapters) are the same modern JavaScript toolchain you’d use anywhere — so most of this transfers directly from other frameworks.