React Testing Patterns

React component and hook testing patterns with Testing Library and Vitest. Use when writing tests for React components, custom hooks, or data fetching logic. Covers component rendering tests, user interaction simulation, async state testing, MSW for API mocking, hook testing with renderHook, accessibility assertions, and snapshot testing guidelines. Does NOT cover E2E tests (use e2e-testing) or TDD workflow enforcement (use tdd-workflow).

hieutrtr Updated 8 repo stars

File contents

hieutrtr/ai1-skills commit 50762ab1c1

Frequently asked questions

npx get-skill add hieutrtr/react-testing-patterns