tdd-workflow

Installation
Summary

Test-driven development workflow enforcing 80%+ coverage across unit, integration, and E2E tests.

  • Write tests first, then implement code to make them pass; covers unit tests (functions, components), integration tests (APIs, databases), and E2E tests (Playwright for critical user flows)
  • Includes comprehensive testing patterns with Jest/Vitest for components, API route testing, and Playwright for browser automation workflows
  • Provides mocking strategies for external services (Supabase, Redis, OpenAI) and test file organization best practices
  • Enforces coverage thresholds (80% minimum) with pre-commit hooks and CI/CD integration; includes common pitfalls to avoid like testing implementation details or brittle selectors
SKILL.md

Test-Driven Development Workflow

This skill ensures all code development follows TDD principles with comprehensive test coverage.

When to Activate

  • Writing new features or functionality
  • Fixing bugs or issues
  • Refactoring existing code
  • Adding API endpoints
  • Creating new components

Core Principles

1. Tests BEFORE Code

ALWAYS write tests first, then implement code to make tests pass.

2. Coverage Requirements

  • Minimum 80% coverage (unit + integration + E2E)
Related skills
Installs
5.1K
GitHub Stars
181.5K
First Seen
Jan 20, 2026