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.
Testing Library Skill
React component testing with accessible queries.
Keywords
testing-library, react testing library, @testing-library/react, @testing-library/user-event, @testing-library/jest-dom, getByRole, getByLabelText, getByText, findByRole, queryByRole, waitFor, waitForElementToBeRemoved, screen, render, user-event, userEvent, fireEvent, accessibility testing, a11y, axe, MSW, mock service worker, API mocking, form testing, async testing, component testing, integration testing
Auto-trigger
This skill activates when discussing:
- Testing React components
- Using getByRole, getByLabelText, or other Testing Library queries
- User interaction simulation with userEvent
- Waiting for async UI updates
- Mocking API calls with MSW
- Accessibility testing with axe
- Form testing patterns