Testing

Route projects to unit/integration or end-to-end testing strategies with Vitest, React Testing Library, and Playwright.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/joshuaculmer/cook_book --skill testing-joshuaculmer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Testing
Source: https://github.com/joshuaculmer/cook_book/tree/main/.myteam/testing
Command: npx skills add https://github.com/joshuaculmer/cook_book --skill testing-joshuaculmer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Determines the appropriate testing strategy for a project by guiding you to the correct sub-skill (unit/integration tests or end-to-end tests) and documenting general testing principles.

Core Features & Use Cases

  • Unit and integration testing: Use Vitest + React Testing Library to validate components and hooks.
  • End-to-end testing: Use Playwright to validate critical user journeys.
  • Guidance on when to apply unit tests vs E2E tests and how to document the strategy.

Quick Start

Load the appropriate sub-skill for the task by choosing testing/unit for unit/integration tests or testing/e2e for end-to-end tests.

Frequently Asked Questions about Testing

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

FAQPage Schema
When should I write unit tests versus end-to-end tests in my project?

Use unit tests to validate individual components and hooks with Vitest and React Testing Library, and apply end-to-end tests with Playwright to validate critical user journeys across the application.

How do I structure a testing strategy for a React project?

Structure your testing strategy by routing between unit or integration tests and end-to-end tests, documenting general testing principles, and specifying Vitest with React Testing Library for components and Playwright for user flows.

Does this testing approach use Vitest and React Testing Library?

Yes, the testing approach specifies using Vitest combined with React Testing Library for unit and integration testing to validate components and hooks within your project environment.

What is the best way to validate critical user journeys in my application?

The best way to validate critical user journeys is by implementing end-to-end tests using Playwright, which is specified for routing and testing complete user flows across your application interface.

Can I use Playwright for integration testing instead of unit tests?

Playwright is specified for end-to-end testing to validate critical user journeys, while Vitest and React Testing Library are designated for integration and unit testing of components and hooks.