api-mocking
E2EテストおよびユニットテストにおけるAPIモック技術スキル。外部API依存を排除し、テストの安定性・速度・信頼性を向上させるための手法とベストプラクティスを提供します。 📖 参考資料: • 『RESTful Web APIs』(Leonard Richardson)/ 適用: APIレスポンスのモック化 / 目的: 外部API依存を排除し、テストの安定性と速度を向上させる • 『Mock Service Worker』(Artem Zakharchenko)/ 適用: ネットワークリクエストのインターセプト / 目的: 複雑なAPI統合シナリオでのテスト精度向上 • 『Testing JavaScript』(Kent C. Dodds)/ 適用: エラーケース(4xx、5xx)のテスト / 目的: エラーハンドリングの包括的な検証 外部APIへのテスト依存を排除したい時、エラーケースをテストしたい時、ネットワーク遅延をシミュレートしたい時、MSWによるHTTPインターセプトを実装したい時に使用します。
Installation
Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.
Voir la source ↗GuidesInstructions
Les instructions ne sont pas encore indexées. Consultez le dépôt pour SKILL.md et les prérequis.
chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!