frontend-testing

Generate Vitest and React Testing Library tests for Dify frontend components, hooks, and utilities.

Updated Jun 13, 2025
One-click install
npx skills add https://github.com/minseok1109/coffimer-app --skill frontend-testing-minseok1109
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-testing
Source: https://github.com/minseok1109/coffimer-app/tree/main/.agents/skills/frontend-testing
Command: npx skills add https://github.com/minseok1109/coffimer-app --skill frontend-testing-minseok1109

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines the process of writing and reviewing frontend tests for the Dify project, ensuring robust and reliable component behavior.

Core Features & Use Cases

  • Automated Test Generation: Creates Vitest + React Testing Library tests for components, hooks, and utilities.
  • Best Practice Enforcement: Adheres to Dify's testing conventions, including AAA pattern, black-box testing, and semantic naming.
  • Use Case: When a new feature is developed, use this Skill to automatically generate comprehensive unit and integration tests, significantly reducing manual testing effort and improving code quality.

Quick Start

Generate Vitest tests for the UserProfile component located at web/app/components/user/profile/index.tsx.

Frequently Asked Questions about frontend-testing

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

FAQPage Schema
How do I generate Vitest and React Testing Library tests for frontend components?

To generate Vitest and React Testing Library tests, provide the component path to trigger automated spec file generation. The skill outputs tests covering components, hooks, and utilities following the AAA pattern and black-box testing conventions.

What is the best way to write frontend tests for React hooks and utilities?

Writing frontend tests for React hooks and utilities is streamlined by generating Vitest spec files automatically. The skill enforces semantic naming conventions and black-box testing to ensure robust component behavior and reliable hook execution.

Can I use this skill to perform coverage analysis on existing React testing library spec files?

Yes, you can perform coverage analysis on existing React Testing Library spec files. The skill supports coverage analysis triggers to evaluate test effectiveness for your frontend codebase, identifying untested components and utility branches.

Does the generated Vitest test code adhere to specific frontend testing conventions?

The generated Vitest test code strictly adheres to frontend testing conventions, including the AAA pattern, black-box testing principles, and semantic file naming. It ensures tests align with specific tech stack versions and project requirements.

When should I not use automated test generation for frontend components?

You should not use automated test generation when your frontend components require highly custom integration tests external to the React Testing Library ecosystem. The skill focuses on Vitest, component hooks, and utility testing rather than end-to-end browser automation.