Svelte Testing with Sveltest

Installation
SKILL.md

Svelte Testing with Sveltest

Modern Svelte 5 testing uses vitest-browser-svelte to run tests in real browsers instead of simulated environments like jsdom. This approach provides accurate testing of runes, reactivity, and DOM behavior.

Setup

Install Dependencies

pnpm install -D @vitest/browser-playwright vitest-browser-svelte playwright

# Remove old testing libraries if present
pnpm remove @testing-library/jest-dom @testing-library/svelte jsdom

Configure Vite

Installs
–
First Seen
–
Svelte Testing with Sveltest — maxnoller/claude-code-plugins