| name | testing |
| description | Unified testing commands and patterns across frontend and backend. |
| last_updated | Sat Dec 20 2025 00:00:00 GMT+0000 (Coordinated Universal Time) |
Testing Skill
Overview
Guidance and templates for testing in {PROJECT_NAME}. Covers React Component testing (Vitest/RTL) and Backend testing (Python/Pytest).
When To Use
- Writing new code: Every new feature needs tests.
- Fixing bugs: Create a reproduction test first.
- Refactoring: Ensure green tests before and after.
Instrumentation
# Log usage when using this skill
./scripts/log-skill.sh "testing" "manual" "$$"
What do you want to do?
- Test React Components →
workflows/run-frontend-tests.md - Test Backend/API →
workflows/run-backend-tests.md - Write a New Test →
templates/component-test.template.tsx - Fix Test Failures →
references/vitest-patterns.md
Quick Commands
# Frontend (Unit/Integration)
npm test
npm test -- -t "ComponentName" # Run specific test
# Backend (API)
pytest
pytest -k "test_name"