comparar · Tests
Both work with Svelte, SvelteKit. In a kit you pick one, and your agent gets the rule to use only that one.
| Playwright | Vitest | |
|---|---|---|
| What it is | End-to-end tests in real browsers. | Svelte unit tests and browser-aware test configuration. |
| Frameworks | Next.js, Vue, Nuxt, Svelte, SvelteKit, Astro, React, Vanilla | Svelte, SvelteKit |
| Paquetes | — | — |
| Skill oficial | microsoft/playwright-cli@playwright-cli, currents-dev/playwright-best-practices-skill@playwright-best-practices | — |
| How your agent uses it | End-to-end tests go in `e2e/`. Run them with `npm run test:e2e` (it starts the app for you). Use role and text selectors (`getByRole`), not CSS classes. | Use Vitest for pure logic and the official Svelte/Vite test configuration for components. Do not import server-only modules into browser tests. |
| Kits that offer it | blog-astro, chrome-extension, desktop-electron, desktop-tauri, docs-fumadocs, docs-starlight, docs-vitepress, landing-astro, landing-next, landing-nuxt, landing-sveltekit, mobile-ionic-react, portfolio-astro, saas-ai-next, saas-next-better-auth, saas-next-supabase, saas-nuxt, saas-sveltekit, saas-t3, saas-tanstack-start, spa-vite-react, web-astro, web-next, web-nuxt, web-react-router, web-sveltekit, web-tanstack-start, web-vue-vite | chrome-extension, landing-sveltekit, saas-sveltekit, web-sveltekit |
| Chosen in | 0 installs | 0 installs |