One-click install
npx skills add https://github.com/solrac97gr/marketplace-plugins --skill update-tests
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: update-tests
Source: https://github.com/solrac97gr/marketplace-plugins/tree/main/plugins/react-dev/skills/update-tests
Command: npx skills add https://github.com/solrac97gr/marketplace-plugins --skill update-tests

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the challenge of insufficient or outdated test coverage in React projects, ensuring code quality and reliability.

Core Features & Use Cases

  • Identify Test Gaps: Pinpoints areas of code lacking adequate test coverage.
  • Generate Missing Tests: Creates comprehensive unit, integration, and E2E tests based on best practices.
  • Improve Existing Tests: Modernizes tests to follow current standards like React Testing Library and accessibility guidelines.
  • Use Case: A developer needs to ensure their new feature is thoroughly tested before merging. They can use this Skill to automatically generate tests for components, hooks, and services related to the feature, and then update existing tests to meet coverage goals.

Quick Start

Use the update-tests skill to improve test coverage for the entire project.

Frequently Asked Questions about update-tests

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

FAQPage Schema
How do I identify gaps in React test coverage for existing codebases?

Identifying React test coverage gaps involves analyzing existing codebases to pinpoint areas lacking unit, integration, or E2E tests, then generating missing test cases using templates to ensure components, hooks, and services meet coverage goals.

How do I modernize existing React tests to follow React Testing Library best practices?

Modernizing existing React tests involves updating them to adhere to current standards like React Testing Library and accessibility guidelines, prioritizing user-visible behavior, accessible queries, and edge case testing for components, hooks, and utilities.

What is the best way to automate generating missing test cases for React components and hooks?

Automating missing test case generation for React components and hooks involves scanning the codebase for coverage gaps and creating comprehensive unit, integration, and E2E tests using provided templates and best practices.

Can I automatically add accessibility queries to my React integration tests?

Yes, you can add accessibility queries to React integration tests by modernizing existing test cases to prioritize accessible queries and user-visible behavior, ensuring compliance with current accessibility standards.

Does automated React test generation work for E2E tests as well as unit tests?

Automated React test generation works for E2E tests as well as unit tests by identifying coverage gaps across all test layers and generating comprehensive test cases using templates for components, hooks, services, and utilities.