qa-unit-test-creation

Automate Vitest unit-test creation with AAA structure, mocks, fixtures, and data factories.

1|Updated Jan 20, 2026
One-click install
npx skills add https://github.com/feliperyba/ralph-orchestra --skill qa-unit-test-creation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: qa-unit-test-creation
Source: https://github.com/feliperyba/ralph-orchestra/tree/main/.claude/skills/qa-unit-test-creation
Command: npx skills add https://github.com/feliperyba/ralph-orchestra --skill qa-unit-test-creation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creates and enforces reusable patterns for Vitest unit tests across components, services, stores, and utilities, reducing boilerplate and improving test quality.

Core Features & Use Cases

  • AAA (Arrange-Act-Assert) structure guidance for consistent test layout.
  • Mocks and Stubs patterns to isolate units and reduce flakiness.
  • Fixtures and Test Data Factories for repeatable, realistic test data.
  • Test Organization templates for component, service, and store tests with naming conventions and directory structures.

Quick Start

Install Vitest in your project and start a test file using the AAA pattern with mocks and a data factory to generate test data.

Frequently Asked Questions about qa-unit-test-creation

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

FAQPage Schema
How do I structure Vitest unit tests for consistent layout?

Structure Vitest unit tests using the AAA (Arrange-Act-Assert) pattern to enforce a consistent test layout across components, services, stores, and utilities, reducing boilerplate and improving overall test quality.

What is the best way to isolate units and reduce flakiness in Vitest?

The best way to reduce Vitest test flakiness is applying mocks and stubs patterns to isolate units. This ensures tests run deterministically by separating the target code from its external dependencies.

How do I generate repeatable test data in Vitest?

Generate repeatable test data in Vitest by using fixtures and test data factories. These patterns provide realistic, standardized data inputs for your components, services, and stores during test execution.

Can I use these test patterns for both React components and utility services?

Yes, these Vitest test patterns apply directly to React components, stores, services, and utilities. They provide standardized templates and naming conventions for organizing tests across your entire software project.

Do I need to install specific dependencies to use these test organization templates?

You need Vitest installed in your project. The patterns leverage standard Vitest features for mocking, fixtures, and data factories without requiring additional external dependencies or specialized components.