tdd

Guide Red-Green-Refactor TDD cycles for Node, TypeScript, and React projects.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/onepunch-tk/cc-test-notion-invoice-web --skill tdd-onepunch-tk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/onepunch-tk/cc-test-notion-invoice-web/tree/main/.claude/skills/tdd
Command: npx skills add https://github.com/onepunch-tk/cc-test-notion-invoice-web --skill tdd-onepunch-tk

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

TDD rules and patterns guide developers to write tests early, enforce coverage, and reduce regression risk across modern JS/TS stacks.

Core Features & Use Cases

  • Clear rules for identifying test targets (Must Test) and known non-test patterns (Exclude from Testing).
  • Guidance on the Red-Green-Refactor cycle and AAA testing pattern across frameworks (Expo, React Native, React Router v7, NestJS using Vitest/Jest).
  • Reference materials and practical examples to accelerate test setup and validation in real-world codebases.

Quick Start

Run a Red–Green–Refactor cycle on a small feature in your Expo/React Native project using Vitest to illustrate the TDD workflow.

Frequently Asked Questions about tdd

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I start TDD in a React Native project using Vitest?

Start TDD in a React Native with Vitest by running a Red-Green-Refactor cycle on a small feature. The workflow guides test target selection and the AAA pattern to validate code incrementally across Expo.

What is the AAA testing pattern in Test-Driven Development?

The AAA testing pattern structures tests into Arrange, Act, and Assert phases. It guides developers through the Red-Green-Refactor cycle to write tests early, enforce coverage, and reduce regression risk across JS/TS stacks.

Does TDD workflow guidance support NestJS with Jest?

Yes, TDD workflow guidance supports NestJS with Jest. It provides framework-specific examples and reference materials to accelerate test setup and validation for Node and TypeScript projects.

When should I exclude code from testing in a TDD workflow?

Exclude code from testing when it matches known non-test patterns. TDD guidance specifies Must Test targets and Exclude patterns to focus validation efforts on meaningful logic and reduce unnecessary test overhead.

What's the best way to identify test targets for React Router v7?

Identify test targets for React Router v7 by applying Must Test rules to select critical logic. TDD guidance streamlines this selection process and provides framework-specific examples for Vitest and Jest setups.