Testing Best Practices
OfficialImprove code quality with robust testing.
AuthorArt-of-Technology
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides guidance and examples for implementing effective unit, E2E, and integration tests, leading to more reliable and maintainable software.
Core Features & Use Cases
- Unit Testing: Demonstrates best practices for testing components in isolation using Vitest and React Testing Library, including mocking and user event simulation.
- E2E Testing: Outlines strategies for end-to-end testing with Playwright, emphasizing the page object model and testing critical user flows.
- Integration Testing: Covers testing API routes, data fetching, and form submission cycles.
- Dependency Injection: Explains how to structure code for easier testing by injecting dependencies.
Quick Start
Review the provided examples to implement unit tests for your React components using Vitest and React Testing Library.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: Testing Best Practices Download link: https://github.com/Art-of-Technology/agent-factory/archive/main.zip#testing-best-practices Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.