shipshitdev/library
Expert en tests NestJS
Nestjs Testing Expert
3 077e ex aequo sur 4 265 skills du métier Développement, par installations. Dans l'annuaire depuis le 18 novembre 2026.
Description
Aide à écrire de bons tests Jest pour des applications NestJS sur toute la pyramide de tests : configuration de TestingModule avec des providers explicites, simulation des services externes sans excès et choix entre adaptateurs en mémoire ou conteneurs de test.
Voir la description originale (anglais)
Helps you write proper Jest tests for NestJS applications across the testing pyramid. You get patterns for setting up TestingModule with explicit providers, mocking external services without overdoing it, and choosing between in-memory adapters or test containers for database tests. The skill pushes you toward deterministic tests with clear arrange/act/assert structure and reminds you to cover error paths, not just happy paths. If you're debugging flaky tests or unsure whether to write a unit test with mocks or spin up an integration test with real providers, this gives you practical guidance. The e2e advice points you to supertest for HTTP testing, which is the standard approach most NestJS projects use anyway.
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.