generating-unit-tests

Generate Vitest unit test files for TypeScript functions.

Updated Dec 29, 2025
One-click install
npx skills add https://github.com/jhlee0409/inner-lens --skill generating-unit-tests
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generating-unit-tests
Source: https://github.com/jhlee0409/inner-lens/tree/main/.claude/skills/generating-unit-tests
Command: npx skills add https://github.com/jhlee0409/inner-lens --skill generating-unit-tests

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation of Vitest unit tests for TypeScript functions, aligning with project conventions to save time and ensure consistent test coverage.

Core Features & Use Cases

  • Test Skeletons: Generate test files (*.test.ts) next to source files with proper imports and describe blocks.
  • Coverage Focus: Include tests for happy paths, edge cases, error handling, and type safety.
  • Project Alignment: Adheres to the project's testing patterns and naming conventions.

Quick Start

Provide the path to the source file and the function name, e.g., "Generate Vitest tests for export function formatDate in src/utils/date.ts" and the skill will create a corresponding .test.ts file.