This skill provides a production-grade framework for verifying the collaboration between routes, middleware, services, and databases in Node.js applications. It automates the setup of isolated test environments using in-memory MongoDB instances, offers reusable request helpers for authenticated API calls, and implements factory patterns for consistent data seeding. By focusing on the full request-response lifecycle, it ensures that authentication, validation, and database operations work correctly together, helping developers catch complex bugs that unit tests often miss.
主要功能
01Authenticated request helpers for simplified Supertest interactions.
02Middleware testing patterns for rate limiting and RBAC verification.
03Standardized database cleanup and test isolation protocols.
040 GitHub stars
05Isolated in-memory MongoDB setup using MongoMemoryServer.
06Seed data factories for generating realistic test entities with Faker.