Skip to main content

testing-jest

Escreve e estrutura testes automatizados com Jest (unit e integration) para backends TypeScript/JavaScript, decidindo POR CAMADA o que testar e o que mockar ou usar fake: domínio (unit puro, sem mocks), use cases (unit mockando as portas), repositories/adapters (integration contra a dependência real ou double de infra) e controllers/rotas (integration com supertest ou Nest Testing module). Use quando o desenvolvedor for escrever, organizar ou revisar testes com Jest — nomes de describe/it, estrutura AAA, `jest.fn()` vs fakes à mão, o que é unit vs integration, o que dublar em cada camada — mesmo sem citar "Jest". COMPÕE com as skills de arquitetura (itens 3 e 4) e de backend (itens 7 e 8): elas definem as camadas e a mecânica dos frameworks; esta decide como testá-las. NÃO redefine camadas nem mecânica de framework. Gatilhos: teste, testar, unit test, integration test, jest, supertest, mock, fake, stub, spy, describe/it, cobertura de camada, test double.

Jump to install

Source facts

Repository
Caioohv/ai-workflow
Last source activity
August 3, 2026 at 00:25
Detected SKILL.md language
Portuguese
Stars
5
Forks
0

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.