react-testing-workflows

Configure Vitest, Playwright, Storybook, and MSW testing workflows for React TypeScript applications.

7|1|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/PMDevSolutions/Aurelius --skill react-testing-workflows
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-testing-workflows
Source: https://github.com/PMDevSolutions/Aurelius/tree/main/.claude/skills/react-testing-workflows
Command: npx skills add https://github.com/PMDevSolutions/Aurelius --skill react-testing-workflows

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the problem of inconsistent, incomplete testing strategies for React applications, where teams often miss critical test layers, struggle with flaky tests, or lack standardized patterns for writing maintainable, reliable tests across the entire testing pyramid.

Core Features & Use Cases

  • Multi-Layer Testing Coverage: Provides standardized workflows aligned with industry testing pyramid ratios for unit tests (Vitest), component integration tests (React Testing Library), end-to-end cross-browser tests (Playwright), and visual regression tests (Storybook).
  • Pre-Configured Test Infrastructure: Includes ready-to-use configurations for all testing tools, pre-built mocks for common browser APIs (IntersectionObserver, matchMedia, ResizeObserver), and MSW setups for API mocking to reduce setup time.
  • Debugging & Best Practices: Offers guidance for resolving common test failures including act warnings, flaky async tests, and missing ARIA role errors, while enforcing accessible query patterns to ensure tests validate real user experiences.
  • Use Case: For a React e-commerce application, use this Skill to implement a full test suite that catches UI regressions, validates checkout user flows, and ensures component accessibility across Chrome, Firefox, and Safari.

Quick Start

Use the react-testing-workflows skill to set up a complete testing pipeline for your React TypeScript app, including Vitest unit and integration tests, Playwright cross-browser E2E tests, Storybook visual interaction tests, and configurable coverage thresholds.

Frequently Asked Questions about react-testing-workflows

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

FAQPage Schema
How do I set up a complete React testing workflow across multiple layers?

A complete React testing workflow uses Vitest for unit tests, React Testing Library for integration tests, Playwright for end-to-end tests, and Storybook for visual regression to ensure full coverage. This eliminates inconsistent patterns by standardizing configurations across all test layers.

What's the best way to stop flaky async tests and act warnings in React Testing Library?

To stop flaky async tests and act warnings in React Testing Library, apply standardized testing workflows that enforce accessible query patterns and provide pre-built mocks for common browser APIs like IntersectionObserver, matchMedia, and ResizeObserver to stabilize test environments.

How do I configure MSW API mocking for Vitest and Playwright in a React app?

Configuring MSW API mocking for Vitest and Playwright involves setting up pre-built mock handlers that intercept network requests during unit, integration, and end-to-end tests. This ensures consistent API responses and isolates UI components from backend fluctuations.

Does this React testing workflow support cross-browser E2E tests with Playwright?

Yes, this React testing workflow supports cross-browser E2E tests with Playwright. It provides ready-to-use Playwright configurations to validate critical user flows, such as e-commerce checkout processes, across multiple browsers including Chrome, Firefox, and Safari.

Can I use Storybook play functions to implement visual regression tests for React components?

Yes, you can use Storybook play functions to implement visual regression tests for React components. This workflow provides standardized implementations for Storybook play functions to automate UI interactions and validate visual consistency across your component library.

How do I enforce coverage thresholds in a React TypeScript project?

Enforcing coverage thresholds in a React TypeScript project requires configuring Vitest to fail builds when coverage drops below defined limits. This workflow includes configurable coverage threshold enforcement to maintain testing pyramid ratios and prevent code regressions.