unit-test

Generate and run unit tests for changed React components, hooks, and utilities.

1|1|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/kangmomin/harness-plugins --skill unit-test-kangmomin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unit-test
Source: https://github.com/kangmomin/harness-plugins/tree/main/fe-harness/skills/unit-test
Command: npx skills add https://github.com/kangmomin/harness-plugins --skill unit-test-kangmomin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

변경된 컴포넌트/함수 대상으로 단위 테스트를 작성하고 실행하는 과정을 자동화합니다.

Core Features & Use Cases

  • 변경된 컴포넌트, 훅, 유틸리티에 대한 단위 테스트를 생성하고 실행합니다.
  • 프런트엔드 코드베이스에서 테스트 대상을 식별하고, 실행 상태를 보고합니다.
  • Use Case: 예를 들어 여러 컴포넌트가 변경되었을 때 관련 테스트를 한꺼번에 생성하고 검증합니다.

Quick Start

테스트 변경사항에 대해 자동으로 단위 테스트를 생성하고 실행한다.

Frequently Asked Questions about unit-test

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

FAQPage Schema
How do I automatically generate unit tests for changed React components?

You can generate unit tests for changed React components by identifying modified components, hooks, and utilities, then creating and executing test cases using Vitest or Jest with Testing Library.

Can I use this to run unit tests for custom hooks and utilities, not just components?

Yes, unit tests can be generated and run for custom hooks and utilities alongside React components, ensuring all changed frontend code is identified and validated across the codebase.

Do I need Vitest or Jest installed to generate and run frontend unit tests?

Yes, Vitest or Jest must be installed along with Testing Library as project prerequisites to execute the generated unit tests and report the test results for your frontend codebase.

What is the best way to generate unit tests for multiple changed components at once?

The best way to generate unit tests for multiple changed components is to identify all modified files and automatically create test cases in a single batch, running and reporting results together.

Does this unit test generation follow existing project conventions for testing?

Yes, unit test generation follows your existing project conventions and prerequisites, ensuring the generated tests for React components and hooks align with your current Vitest or Jest setup.