react-testing-library

Solid

React Testing Library patterns and best practices. User-centric testing, queries, events, and assertions. Trigger: When testing React components with RTL.

Testing & QA 183 stars 39 forks Updated 1 months ago MIT

Install

View on GitHub

Quality Score: 90/100

Stars 20%
75
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
23
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# React Testing Library Skill ## When to Use - Testing React components - Simulating user interactions - Writing maintainable tests ## Critical Patterns - Use screen and queries - Prefer user-event over fireEvent - Test from user perspective ## Decision Tree - Render or shallow? → Always render - Need async? → Use findBy\* - Accessibility? → Use role/label queries ## Edge Cases - Portal/modal testing - Async UI updates - Custom hook testing

Details

Author
majiayu000
Repository
majiayu000/claude-skill-registry
Created
5 months ago
Last Updated
1 months ago
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category