javascript-testing-patterns - Apply JavaScript and TypeScript Testing Patterns
Implement unit, integration, and end-to-end tests with Jest, Vitest, and Testing Library, including mocking, fixtures, and TDD workflows.
Tags
Updated: 2026-09-29Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Set up test infrastructure
- Write unit tests
- Create integration tests
- Implement end-to-end tests
- Mock external dependencies
- Test frontend components
- Apply test-driven development
- Configure continuous testing
Inputs
- JavaScript or TypeScript source code
- Project test configuration
- External dependency interfaces
- User flow specifications
- CI/CD pipeline configuration
Outputs
- Test files
- Test configuration files
- Mock implementations
- Test execution results
- Coverage reports
Requirements
- JavaScript or TypeScript project
- Jest or Vitest support
- Testing Library support for component tests
