test-generator

Generate unit tests for TypeScript/JavaScript projects with Vitest, Playwright, and Testing Library.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/ShunsukeHayashi/Miyabi --skill test-generator-shunsukehayashi
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: test-generator
Source: https://github.com/ShunsukeHayashi/Miyabi/tree/main/.claude/skills/test-generator
Command: npx skills add https://github.com/ShunsukeHayashi/Miyabi --skill test-generator-shunsukehayashi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires Bash, Read, Write, Grep, Glob, and includes scripts (resource) components.

What problem does it solve?

This Skill eliminates the tedious work of writing tests by automatically generating comprehensive unit tests with high coverage.

Core Features & Use Cases

  • Test Coverage Automation: Generate tests for happy paths, edge cases, and error conditions.

Quick Start

Write unit tests for the 'calculateTotal' function in 'src/utils.rs' covering all edge cases.

Quick Start

Generate unit tests for the 'UserService' class with 80% coverage target.

Frequently Asked Questions about test-generator

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

FAQPage Schema
How do I generate unit tests with high code coverage automatically?▼

Unit test generation automates creating comprehensive tests covering happy paths, edge cases, and error conditions. This Skill generates tests for TypeScript/JavaScript projects using Vitest, Playwright, and Testing Library, targeting 80% coverage across statements, branches, functions, and lines with AAA-pattern templates and mock utilities.

Can I generate tests for async functions and mocked dependencies?▼

Yes. This Skill generates async tests and provides mock utilities to handle dependencies. It structures tests using AAA patterns and covers integration scenarios alongside unit tests, ensuring consistent naming conventions and test file layouts across your project.

What frameworks and tools does automated test generation support?▼

Test generation covers TypeScript/JavaScript projects using Vitest for unit testing, Playwright for end-to-end scenarios, and Testing Library for component testing. It enforces 80% coverage thresholds and provides structured templates for consistent test organization.

How do I ensure test coverage meets project standards?▼

This Skill enforces test coverage thresholds of 80% across statements, branches, functions, and lines. It provides guidance on test file layouts, naming conventions, and structured templates to help you maintain consistency and meet coverage requirements automatically.

Do I need to write mocking logic manually for unit tests?▼

No. This Skill includes mock utilities that handle dependency mocking automatically. It generates test templates with mock setup included, reducing manual boilerplate and ensuring your mocks follow established patterns and naming conventions.

Can I generate tests covering edge cases and error conditions?▼

Yes. Test generation covers happy paths, edge cases, and error conditions systematically. It creates unit, integration, and end-to-end test scenarios using templates and guidance to ensure comprehensive coverage across different test types.