tdd-vitest-typescript

Community

Master TDD with Vitest & TypeScript, test-first.

AuthorEmz1998
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill guides developers through Test-Driven Development (TDD) workflows, ensuring robust, well-tested code from the start. It simplifies the process of writing tests before code, following the Red-Green-Refactor cycle, and setting up Vitest with TypeScript for type-safe, reliable applications.

Core Features & Use Cases

  • TDD Workflow Guidance: Systematically applies the Red-Green-Refactor cycle for new features and bug fixes.
  • Vitest & TypeScript Setup: Provides configurations, file organization, and patterns for type-safe testing environments.
  • Advanced Testing Patterns: Covers mocking, asynchronous code testing, error handling, and integration testing strategies.
  • Use Case: When starting a new feature, use this skill to write a failing test, then implement the minimal code to pass it, and finally refactor, ensuring every piece of code is covered by tests and adheres to TDD principles.

Quick Start

Help me set up a new Vitest and TypeScript project for TDD, including example calculator.ts and calculator.test.ts files.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: tdd-vitest-typescript
Download link: https://github.com/Emz1998/nexly-notes/archive/main.zip#tdd-vitest-typescript

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository