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 50762ab 4 files · 22.7 KB Updated

File contents

hieutrtr/ai1-skills/tree/main/skills/react-testing-patterns commit 50762ab1c1

Frequently asked questions

npx skillmds@latest add hieutrtr/react-testing-patterns