What problem does it solve?
This skill standardizes testing across unit, component, integration, and end-to-end layers for React/Next.js apps.
Core Features & Use Cases
- Patterned test structure: Clear conventions for organizing tests, utilities, and mocks across Vitest, RTL, and Playwright.
- E2E readiness: Ready-to-use Playwright-based end-to-end scenarios combined with MSW for API mocking.
- Use Case: On a new React project, adopt the skill to establish a scalable testing pattern that yields fast, consistent feedback during development.
Quick Start
Install dependencies: npm install -D vitest @testing-library/react @testing-library/jest-dom @testing-library/user-event @playwright/test msw
Create a basic vitest.config.ts with environment: jsdom and a setup file to import jest-dom and clean up between tests.
Organize tests under tests/ with folders for unit/, component/, integration/, and e2e/ and add example tests that demonstrate Vitest, RTL, and Playwright usage.