
React Testing Library
Accessibility-first component tests for React using role, label, and text queries plus user-event simulation.
- skills.sh installs
- 1.4K
- GitHub stars
- 23
- last updated
- Aug 21, 2026
What it does
- Covers query selection by role, label, and text, with a priority order that prefers accessible queries over test IDs
- Includes reference guides for queries, user events, async utilities, the core API, debugging, and configuration
- Enforces user-event over
fireEvent, and flags anti-patterns such as class selectors,container.firstChild, and assertions insidefindBy - Designed for React 19 projects on v16.1.0+ that write component, hook, or async UI tests with Jest-style matchers
Install
$ npx -y skills add itechmeat/llm-code --skill react-testing-library -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
React Testing Library Skill
Quick Navigation
| Topic | Link |
|---|---|
| Queries | references/queries.md |
| User Events | references/user-events.md |
| API | references/api.md |
| Async | references/async.md |
| Debugging | references/debugging.md |
| Config | references/config.md |
Installation
Install: npm install --save-dev @testing-library/react @testing-library/dom. Recommended extras: @testing-library/user-event and @testing-library/jest-dom. React 19 requires v16.1.0+.
Core Philosophy
"The more your tests resemble the way your software is used, the more confidence they can give you."
Avoid testing:
- Internal state of components
- Internal methods
- Lifecycle methods
- Child component implementation details
Test instead:
Details
- Repository
- github.com/itechmeat/llm-code
- Categories
- Testing & QA, Frontend & UI Code
- First seen
- May 16, 2026
More from itechmeat/llm-code
All 2Similar to React Testing Library
More Testing & QA
react-testingaffaan-m/ecc6.4K installsBehavior-focused React component, hook, and page tests with RTL, MSW mocking, and axe accessibility checks.
jest-react-testingmanutej/luxor-claude-marketplace1.2K installsComprehensive Jest and React Testing Library guidance for configuration, mocking, async, and hook tests.
react-native-testingcallstack/react-native-testing-library5.6K installsGuide for writing React Native component tests with Testing Library v13 and v14, covering queries, matchers, and async patterns.
frontend-accessibility-best-practicessergiodxa/agent-skills911 installsAccessibility rules for React components covering semantic HTML, screen readers, keyboard focus, and motion preferences.