clean-react-tests
Installation
SKILL.md
Clean React Tests
React tests should describe what the user can observe and do. Prefer Testing Library queries that match accessible UI and user-event interactions that match real workflows.
R10: Query Priority
Prefer:
getByRolewith accessible namegetByLabelTextgetByTextfor non-interactive copygetByTestIdonly when user-facing queries are not practical
// Bad - coupled to markup
expect(container.querySelector(".save-button")).toBeTruthy();