frontend-component-test

Community

Guarantee React component tests with Vitest + RTL.

AuthorKwondongkyun
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill enforces Vitest + React Testing Library based testing conventions for React components, ensuring consistent structure, selectors, and readability across tests.

Core Features & Use Cases

  • Establishes a recommended testing structure for rendering, props, events, state changes, and conditional rendering.
  • Demonstrates best practices for accessible selectors (Role, Label, Text, TestId) and discourages brittle DOM-queries.
  • Provides practical examples and a clear workflow for maintaining robust component tests within a codebase.

Quick Start

Create or update a React component test file using Vitest + RTL following the guidelines.

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: frontend-component-test
Download link: https://github.com/Kwondongkyun/claude-code-settings/archive/main.zip#frontend-component-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 471,000+ vetted skills library on demand.