React Testing

Write and review React/TypeScript tests for Sentry's frontend using Jest and React Testing Library. Use when adding or editing tests in static/ (*.spec.tsx), writing component/hook tests, mocking API responses with MockApiClient, testing routing or network requests, or when asked to "write a frontend test", "add a React test", "test this component", or "fix a flaky RTL test".

Sentry Updated 845 repo stars

File contents

getsentry/sentry/tree/main/.agents/skills/react-testing commit c8ef58a896

Frequently asked questions

npx skillmds@latest add getsentry/react-testing