Learn how to test your Svelte code using Vitest. See how reactive classes with $state work seamlessly with tests, and discover why over-engineering a Christmas wish list with a binary search tree might actually be a good idea (for testing purposes, at least).
Get started: npx sv add vitest
Docs: https://svelte.dev/docs/svelte/testing
CLI setup: https://svelte.dev/docs/cli/vitest