askill
frontend-testing

frontend-testingSafety --Repository

Use when writing or improving frontend tests with Vitest and React Testing Library using reliable patterns and coverage checks.

0 stars
1.2k downloads
Updated 2/8/2026

Package Files

Loading files...
SKILL.md

Frontend Testing Skill

This Skill provides a framework for generating Vitest and React Testing Library tests for modern frontend applications.

Quick start

Follow the incremental workflow: Utilities/Hooks -> Simple Components -> Complex Components -> Integration Tests.

Critical Workflow

  1. Incremental Approach: Do not generate all tests at once. Follow "Write -> Run -> Fix -> Next".
  2. Integration First: Prefer testing real components over deep mocking.
  3. AAA Pattern: Arrange, Act, Assert.

Reference Guides

See the following for detailed strategies:

Success Criteria

  • 100% function/statement coverage for the target file.
  • 95% branch/line coverage.

  • All tests pass in the terminal.

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

AI review pending.

Metadata

Licenseunknown
Version-
Updated2/8/2026
Publisherluxunxiansheng

Tags

github-actions