comparar · Tests
Both work with Next.js. 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. | Fast unit and component tests with the Jest API. |
| Frameworks | Next.js | Next.js |
| Paquetes | — | — |
| Skill oficial | microsoft/playwright-cli@playwright-cli | antfu/skills@vitest |
| 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. | Tests live next to the code (`*.test.ts(x)`). Run them with `npm test`. For components use `@testing-library/react`. Tests must pass before a task counts as done. |
| Kits that offer it | landing-next, saas-ai-next, saas-next-better-auth, saas-next-supabase, waitlist-next | landing-next, saas-ai-next, saas-next-better-auth, saas-next-supabase, waitlist-next |
| Chosen in | 0 installs | 0 installs |