Javascript Testing Patterns
Beginnerv1.0.0
Implement comprehensive testing strategies using Jest, Vitest, and Testing Library for unit tests, integration tests, and end-to-end testing with mocking, fixtures, and test-driven development.
Content
Comprehensive guide for implementing robust testing strategies in JavaScript/TypeScript applications using modern testing frameworks and best practices.
Use this skill when
- -Setting up test infrastructure for new projects
- -Writing unit tests for functions and classes
- -Creating integration tests for APIs and services
- -Implementing end-to-end tests for user flows
- -Mocking external dependencies and APIs
- -Testing React, Vue, or other frontend components
- -Implementing test-driven development (TDD)
- -Setting up continuous testing in CI/CD pipelines
Instructions
- -Clarify goals, constraints, and required inputs.
- -Apply relevant best practices and validate outcomes.
- -Provide actionable steps and verification.
FAQ
Discussion
Loading comments...