
Description
react-testing is an agent skill from the ECC collection by affaan-m, listed on skills.sh. It sets out testing patterns for React components, custom hooks and pages, built on React Testing Library with Vitest or Jest. Its core principle is to test what the user sees and does, rather than implementation details. It covers mocking network requests with MSW, asserting accessibility with axe, and deciding which tests belong in React Testing Library, in Playwright component testing, or in full end-to-end tests. It also covers adding coverage to legacy untested components, migrating from Enzyme or class-era patterns, and setting up Vitest or Jest for a new React project. The skill applies when writing tests for components, hooks or pages, mocking HTTP calls, or checking for accessibility violations. A skill is a SKILL.md file of instructions that an AI agent loads when a task calls for it. It is free and open source, and the skills.sh listing shows all three security audits passing.…
Highlights
- React Testing Library behaviour tests
- MSW network mocking
- axe accessibility assertions
- Choosing between RTL, component and end-to-end tests
Ratings & Reviews
No ratings yet
Be the first to rate react-testing.
People also visit

feature-flags
Feature flag tests fail, flags need updating, understanding @gate pragmas

frontend-testing
Writing or changing Vitest or React Testing Library tests under `web/` or

webapp-testing
Test local web applications using Playwright for UI verification and debugging

migrate-to-shoehorn
Migrate test files from `as` type assertions to @total-typescript/shoehorn
react-testing FAQ
What does the react-testing skill do?
It guides an agent in writing behaviour-focused React tests, using React Testing Library with Vitest or Jest, MSW and axe.
What is the core principle?
Test what the user sees and does, not implementation details.
Does it help migrate from Enzyme?
Yes. Migrating from Enzyme or class-component patterns is one of its listed uses.
How do I install it?
Run: npx skills add https://github.com/affaan-m/ecc --skill react-testing
Is it free?
Yes. It is free and open source.
Are there security findings?
The skills.sh listing shows Gen Agent Trust Hub, Socket and Snyk all passing.
What are the best react-testing alternatives?
Popular alternatives to react-testing include frontend-a11y, feature-flags and test. See all react-testing alternatives