Skip to content

Tooling, Testing & Production

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.

LessonWhat you’ll learn
Project & toolingScaffolding with sv create, Vite, and svelte-check
TypeScript with SvelteTyping runes, props, snippets, and generic components
TestingVitest, @testing-library/svelte, and Playwright
Performance & deploySmall output, adapters, prerendering, and production builds
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"]
What sits around your Svelte components

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.

What build tool underlies a modern Svelte/SvelteKit project?
What does `svelte-check` do?