react-testing-library
Installation
SKILL.md
React Testing Library
Tests components the way users interact with them -- querying by accessible roles and text, not implementation details.
When to Use
- Testing React components from the user's perspective
- Simulating user interactions (clicks, typing, forms)
- Writing tests that survive internal refactors
Don't use for:
- Pure function or service logic (use jest skill)
- E2E multi-page flows (use Playwright or Cypress)