Jest、Vitest、Testing Libraryを使用した包括的なテスト戦略を実装し、モッキング、フィクスチャ、テスト駆動開発を用いたユニットテスト、統合テスト、エンドツーエンドテストを行います。JavaScript/TypeScriptテストの作成、テストインフラの設定、TDD/BDDワークフローの実装時に使用してください。
Detected risks:
The 'javascript-testing-patterns' skill provides a comprehensive framework for implementing robust testing strategies in JavaScript and TypeScript projects. It leverages modern testing tools like Jest, Vitest, and Testing Library to streamline unit, integration, and end-to-end testing. By offering structured approaches to mocking, fixtures, and test-driven development (TDD), this skill helps developers ensure code reliability and maintainability while reducing the risk of runtime errors. It solves the common problem of inconsistent or incomplete testing in complex applications, providing a clear methodology for creating high-quality test suites across different layers of an application.
This skill supports Jest and Vitest for full-featured and fast Vite-native testing, respectively, and can be used in combination with Testing Library for UI component tests.
Yes, it supports testing React, Vue, and other frontend components, as well as backend functions, classes, APIs, and services.
While the examples use TypeScript, the testing patterns and frameworks can also be applied to plain JavaScript projects.
Yes, it includes patterns for setting up continuous testing within CI/CD pipelines to ensure automated test execution.
Developers should have basic knowledge of JavaScript/TypeScript and familiarity with testing concepts. No specific limitations of the frameworks are mentioned.
Quick Setup:
.claude/skills/Repository
amurata/cc-tools