// Enforces Head Shakers React component testing conventions using Testing Library with proper rendering, user interactions, and accessibility testing.
| name | component-testing |
| description | Enforces Head Shakers React component testing conventions using Testing Library with proper rendering, user interactions, and accessibility testing. |
This skill provides React component testing conventions using Testing Library. Component tests verify rendering, user interactions, and accessibility of React components.
This skill activates when:
tests/components/.tsx files)userEventtests/components/**/*.test.tsxtests/components/)references/Component-Testing-Conventions.mdtesting-base skill for shared conventionscustomRender from tests/setup/test-utils.tsx{ user, ...renderResult } with pre-configured userEventgetByRole for accessibilitygetByTestId with namespace pattern (ui-, feature-, form-*)getByText, getByLabelText for contentqueryBy* for assertions on missing elementsuser from customRender return (pre-configured userEvent)await user interactionsvi.mock()references/Component-Testing-Conventions.md - Complete component testing conventions