# Testing

> Unified testing commands and patterns across frontend and backend. Use when this capability is needed.

- Skill: `tomevault-io/testing-86` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/testing-86`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/testing-86/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/testing-86

---


# 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

```bash
# 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

```bash
# Frontend (Unit/Integration)
npm test
npm test -- -t "ComponentName"  # Run specific test

# Backend (API)
pytest
pytest -k "test_name"
```

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/salavender) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-11 -->

