frontend-testing

Create and review frontend tests for components, pages, Hooks, and utilities.

239|19|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/taichuy/7flows --skill frontend-testing-taichuy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-testing
Source: https://github.com/taichuy/7flows/tree/main/.agents/skills/frontend-testing
Command: npx skills add https://github.com/taichuy/7flows --skill frontend-testing-taichuy

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill addresses the need to improve the quality and reliability of the 7Flows frontend codebase by providing guidance and implementation for component, page, Hook, and utility function testing.

Core Features & Use Cases

  • Test Design & Implementation: Create unit and integration tests for frontend code.
  • Test Review: Assess the adequacy of existing frontend tests.
  • Coverage Improvement: Identify and fill gaps in frontend test coverage.
  • Use Case: When a new feature is developed in the web/ directory, use this Skill to ensure comprehensive test coverage is designed and implemented, catching regressions early.

Quick Start

Design unit tests for the web/lib/utils.ts file to cover its data transformation functions.

Frequently Asked Questions about frontend-testing

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

FAQPage Schema
How do I write frontend unit tests for React components using React Testing Library?

Frontend unit tests for React components using React Testing Library focus on testing user-visible behavior rather than implementation details. You design tests by querying rendered output semantically, ensuring components interact correctly within the 7Flows web directory.

What is the best way to improve test coverage for TypeScript utility functions?

Improving test coverage for TypeScript utility functions involves designing unit tests with Vitest to validate data transformation logic. You assess existing tests, identify uncovered code paths, and implement targeted test cases to catch regressions early in development.

How do I set up Vitest testing infrastructure in an existing JavaScript repository?

Setting up Vitest testing infrastructure in an existing JavaScript repository requires establishing configuration within the web directory. The process involves configuring the test runner, defining test scopes for pages and Hooks, and adhering to current repository limitations during setup.

Does this frontend testing approach work for testing custom Hooks and pages?

Yes, this frontend testing approach works for testing custom Hooks and pages by targeting 7Flows-specific semantic scenarios. It guides implementation of tests for these modules, ensuring comprehensive coverage while focusing on user-visible behavior and current repository constraints.

When should I review existing frontend tests instead of writing new ones?

Reviewing existing frontend tests is necessary when assessing test adequacy and identifying coverage gaps in the web directory. You evaluate whether current tests validate user-visible behavior properly before implementing new test cases to fill those specific gaps.

What are the limitations of testing frontend code within repository constraints?

Limitations of testing frontend code within repository constraints involve adhering to the current structural boundaries of the 7Flows web directory. Tests must focus on user-visible behavior and semantic scenarios while respecting existing infrastructure limitations without modifying core repository architecture.