erichowens/some_claude_skills
Vitest Testing Patterns
3 806e ex aequo sur 4 265 skills du métier Développement, par installations. Dans l'annuaire depuis le 18 novembre 2026.
Description
Vous écrivez des tests avec Vitest et React Testing Library, et ce Skill vous donne les schémas pour bien le faire. Il couvre l'essentiel : simulation de routes d'API et d'appels à la base de données, test de composants React avec interactions utilisateur.
Voir la description originale (anglais)
You're writing tests with Vitest and React Testing Library, and this gives you the patterns to do it right. It covers the practical stuff: mocking API routes and database calls, testing React components with user interactions, handling chained mocks for Drizzle ORM, and organizing test files in a Next.js project. The examples show real scenarios like authentication checks, error states, and timer mocking. It's opinionated about file structure and pairs well with E2E testing skills since unit tests are just one layer. If you're already using Vitest but keep googling how to mock that one thing, this consolidates those patterns in one place.
Installer le skill
- 1Copiez la commande d'installation (bouton Copier, en haut de la fiche).
- 2Lancez-la dans un terminal, sur la machine où vous utilisez Claude Code.
- 3Demandez la tâche à Claude comme d'habitude : il charge le skill quand la demande s'y prête.