testing

Unified testing commands and patterns across frontend and backend.

⭐29stars🔀7forks📁View on GitHub🕐Updated Dec 27, 2025

When & Why to Use This Skill

This Claude skill provides a unified framework for managing and executing tests across both frontend and backend environments. It streamlines the development lifecycle by offering standardized commands for React (Vitest/RTL) and Python (Pytest), along with templates for component testing and guidance for debugging test failures to ensure high code quality and reliability.

Use Cases

  • Full-Stack Feature Validation: Seamlessly verify new features by applying consistent testing patterns to both React components and backend API endpoints.
  • Automated Regression Testing: Maintain code integrity during refactoring by running comprehensive test suites to ensure existing functionality remains intact.
  • Standardized Bug Reproduction: Quickly create isolated test cases using provided templates to reproduce bugs and verify fixes across the entire stack.
  • Developer Workflow Standardization: Establish a clear, unified testing protocol for teams to reduce friction and improve overall software quality through standardized commands like npm test and pytest.
nametesting
descriptionUnified testing commands and patterns across frontend and backend.
last_updated2025-12-20

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?

  1. Test React Components → workflows/run-frontend-tests.md
  2. Test Backend/API → workflows/run-backend-tests.md
  3. Write a New Test → templates/component-test.template.tsx
  4. 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"