·testing-library
</>

testing-library

jezweb/claude-skills

Test React components with Testing Library patterns. Covers queries (getBy/findBy/queryBy), user-event interactions, async testing (findBy vs waitFor), accessibility testing, and MSW integration for API mocking. Use when: testing React components, simulating user interactions, testing forms, mocking API calls with MSW, or writing accessible tests. Keywords: testing-library, react testing library, getByRole, user-event, waitFor, MSW, screen.

203Installs·45Trend·@jezweb

Installation

$npx skills add https://github.com/jezweb/claude-skills --skill testing-library

SKILL.md

Status: Production Ready Last Updated: 2026-02-06 Version: 16.x User Event: 14.x

| 1 | getByRole | Buttons, links, headings, inputs | | 2 | getByLabelText | Form inputs with labels | | 3 | getByPlaceholderText | Inputs without visible labels | | 4 | getByText | Non-interactive text content | | 5 | getByTestId | Last resort only |

| Variant | Returns | Throws | Use For |

Test React components with Testing Library patterns. Covers queries (getBy/findBy/queryBy), user-event interactions, async testing (findBy vs waitFor), accessibility testing, and MSW integration for API mocking. Use when: testing React components, simulating user interactions, testing forms, mocking API calls with MSW, or writing accessible tests. Keywords: testing-library, react testing library, getByRole, user-event, waitFor, MSW, screen. Source: jezweb/claude-skills.

View raw

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/jezweb/claude-skills --skill testing-library
Category
</>Dev Tools
Verified
First Seen
2026-02-07
Updated
2026-02-18

Quick answers

What is testing-library?

Test React components with Testing Library patterns. Covers queries (getBy/findBy/queryBy), user-event interactions, async testing (findBy vs waitFor), accessibility testing, and MSW integration for API mocking. Use when: testing React components, simulating user interactions, testing forms, mocking API calls with MSW, or writing accessible tests. Keywords: testing-library, react testing library, getByRole, user-event, waitFor, MSW, screen. Source: jezweb/claude-skills.

How do I install testing-library?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/jezweb/claude-skills --skill testing-library Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor

Where is the source repository?

https://github.com/jezweb/claude-skills