javascript-testing-patterns - JavaScript and TypeScript Testing Strategies
Implement unit, integration, and end-to-end tests with Jest, Vitest, Testing Library, mocking, fixtures, and TDD workflows.
Tags
Updated: 2026-09-29Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Configure Jest and Vitest
- Write unit tests
- Create integration tests
- Implement end-to-end tests
- Mock dependencies and APIs
- Build fixtures and test workflows
- Apply TDD and BDD workflows
Inputs
- JavaScript or TypeScript source code
- Test requirements
- Framework configuration
- External dependency interfaces
Outputs
- Test files
- Test configuration files
- Test execution results
- Coverage reports
- CI/CD testing setup
Requirements
- JavaScript or TypeScript project
- Jest or Vitest support
- Testing Library support when testing components
