javascript-testing-patterns - JavaScript and TypeScript Testing Patterns
Provides patterns for unit, integration, and end-to-end testing with Jest, Vitest, Testing Library, 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
- Test requirements
- Project configuration
- External dependencies
- API interfaces
Outputs
- Test files
- Test infrastructure configuration
- Mock implementations
- Test execution results
- Coverage reports
- CI/CD test configuration
Requirements
- JavaScript or TypeScript project
- Jest or Vitest support
- Testing Library support when needed
- Permission to modify project files
