test-generation

Generate React test suites for unit, integration, and end-to-end testing.

Updated Jan 25, 2026
One-click install
npx skills add https://github.com/houke/nexus-playground --skill test-generation-houke
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-generation
Source: https://github.com/houke/nexus-playground/tree/main/.github/skills/test-generation
Command: npx skills add https://github.com/houke/nexus-playground --skill test-generation-houke

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires vitest, @testing-library/react, @testing-library/user-event.

What problem does it solve?

This Skill enables rapid creation of robust, maintainable test suites for React applications using Vitest, React Testing Library, and Playwright, reducing debugging time and increasing confidence in code quality.

Core Features & Use Cases

  • Provides templates and patterns for unit, integration, and end-to-end testing.
  • Includes example test suites for components, hooks, and user flows.
  • Helps teams enforce testing standards and improve overall test coverage.

Quick Start

Use the test-generation skill to scaffold a new React test suite by adapting the examples in the Examples directory to your project structure and conventions.

Frequently Asked Questions about test-generation

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

FAQPage Schema
How do I generate React test suites using Vitest and React Testing Library?

Generate test suites by adapting provided example scaffolds for components, hooks, and user flows. The skill outputs test files configured for Vitest and React Testing Library to accelerate your test setup and enforce testing standards.

Can I use this skill to scaffold end-to-end tests for React user flows with Playwright?

Yes, you can scaffold end-to-end tests for React user flows. The skill provides templates and patterns supporting Playwright alongside Vitest to generate robust E2E test files.

What is the best way to structure unit and integration tests for React hooks?

The best way to structure unit and integration tests for React hooks is by applying the skill's included example test suites. These templates enforce testing standards and provide maintainable patterns for your project structure.

Does this skill work without existing Vitest or Playwright configurations in my project?

The skill provides reference materials and example scaffolds to accelerate test setup, but assumes your project has the specified dependencies installed. You adapt the generated test files to match your existing project conventions.

How do I test React component user interactions with @testing-library/user-event?

You can test React component user interactions by utilizing the skill's example test suites for user flows. It generates templates that integrate @testing-library/user-event to simulate interactions and validate component behavior.