testing-best-practices - Testing Best Practices for Node.js and Express
Provides guidance for testing Node.js and Express applications with Jest, Supertest, mocking, test organization, coverage, CI/CD, and TDD.
Tags
Updated: 2026-11-08Typical Inputs
Typical Outputs
What this skill does
- Configure Jest testing
- Test Express APIs
- Organize test files
- Mock external APIs
- Mock database operations
- Test authentication flows
- Handle proxy errors
- Measure code coverage
- Integrate tests with CI/CD
- Apply TDD practices
Inputs
- Node.js application source code
- Express application source code
- API endpoint requirements
- External API interfaces
- Database interfaces
- Test coverage requirements
Outputs
- Jest configuration
- Test files
- Mock implementations
- API test results
- Coverage reports
- CI/CD test configuration
Requirements
- Node.js environment
- Jest support
- Supertest package
- @types/jest package
