React Testing Library

React Testing Library mechanics for testing React components and hooks — query selection, async handling, user interaction, assertions, provider setup, and the anti-patterns that make tests brittle. Use for any test that renders a React component or a hook, including choosing between getBy/queryBy/findBy, userEvent flows, waitFor usage, renderHook, custom render wrappers, and reviewing RTL tests for implementation-detail assertions.

shipshitdev 153bae4 48 files · 73.3 KB Updated

File contents

shipshitdev/skills/tree/main/skills/react-testing-library commit 153bae4a6f

Frequently asked questions

npx skillmds add shipshitdev/react-testing-library