api-integration-test
Installation
SKILL.md
API Integration Test
Generates integration tests for a REST endpoint that run against a real (or in-memory) server and database, covering the full request lifecycle.
Phase 1: Discovery
Extract before writing anything:
- Framework — Express, Fastify, NestJS, Hapi? (affects how the server is spun up in tests)
- Test runner — Jest or Vitest?
- HTTP client —
supertest,undici, nativefetch? Default tosupertestif Express/Fastify. - Auth mechanism — JWT, session cookie, API key, none?
- Database — real DB with test instance, in-memory (SQLite), or mocked at the service layer?
- What the endpoint does — method, path, request body shape, expected response shape
- Existing test setup — is there already a test app factory, seed util, or DB teardown helper?
If the user pastes the route handler, extract the above directly. If not, ask.