javascript-testing-patterns
使用Jest、Vitest与Testing Library实施全面的测试策略,涵盖单元测试、集成测试及端到端测试,结合模拟数据、测试夹具和测试驱动开发方法。适用于编写JavaScript/TypeScript测试用例、搭建测试基础设施或实施TDD/BDD工作流程的场景。
name:javascript-testing-patternsdescription: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. Use when writing JavaScript/TypeScript tests, setting up test infrastructure, or implementing TDD/BDD workflows.
JavaScript Testing Patterns
Comprehensive guide for implementing robust testing strategies in JavaScript/TypeScript applications using modern testing frameworks and best practices.
Use this skill when
Do not use this skill when
Instructions
resources/implementation-playbook.md.Resources
resources/implementation-playbook.md for detailed patterns and examples.