create-unit-test

Official

Vitest tests that follow project patterns.

Authortech-with-seth
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill creates Vitest unit tests following project patterns for functions, components, models, or route loaders/actions.

Core Features & Use Cases

  • Co-located testing: Place test files next to source files (e.g., Button.tsx and Button.test.tsx).
  • Template-driven: Uses standard Vitest templates for component, model, and route tests to ensure consistency.
  • Mocking patterns: Demonstrates mocking and isolation strategies for dependencies.
  • Use Case: When you implement a new function, component, or route, generate the corresponding tests with ready-to-run patterns.

Quick Start

Use this skill to create and organize Vitest unit tests alongside your source files. For example, to test a Button component, add app/components/Button.tsx and create app/components/Button.test.tsx with a basic describe/it/test structure. Then run npm test to execute the tests.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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: create-unit-test
Download link: https://github.com/tech-with-seth/iridium/archive/main.zip#create-unit-test

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

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.