Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add fusengine/agents --skill react-testinggit clone --depth 1 https://github.com/fusengine/agentsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/fusengine/agents/react-testing)<a href="https://agentmods.dev/skills/fusengine/agents/react-testing"><img src="https://agentmods.dev/badge/skills/fusengine/agents/react-testing/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/fusengine/agents/react-testing"><img src="https://agentmods.dev/badge/skills/fusengine/agents/react-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00034 | $0.01429 |
| Opus 5.5 | $0.00014 | $0.00572 |
| Sonnet 5.5 | $0.00007 | $0.00286 |
| Haiku 4.5 | $0.00003 | $0.00143 |
Grade A, and why
react-testing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 176 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Also covers testing React 19 features (useActionState, use()), custom hooks, Suspense boundaries, error boundaries, and accessibility audits with axe-core. Provides Vitest configuration and 9 ready-to-copy test templates. This is a testing-methodology skill layered on top of the React skills (react-19, react-state, react-forms) — it doesn't teach those APIs themselves, only how to test components that use them.
React Testing Library
Test React components the way users interact with them.
Agent Workflow (MANDATORY)
Before ANY implementation, spawn 3 agents in parallel, one Agent call each with a name:
- fuse-ai-pilot:explore-codebase - Analyze existing test patterns
- fuse-ai-pilot:research-expert - Verify latest Testing Library docs via Context7/Exa
- mcp__context7__query-docs - Check userEvent, waitFor patterns
After implementation, run fuse-ai-pilot:sniper for validation.
Overview
When to Use
- Testing React component behavior
- Validating user interactions
- Ensuring accessibility compliance
- Mocking API calls with MSW
- Testing custom hooks
- Testing React 19 features (useActionState, use())
Why React Testing Library
| Feature | Benefit |
|---|---|
| User-centric | Tests what users see |
| Accessible queries | Encourages a11y markup |
| No implementation details | Resilient to refactoring |
| Vitest integration | 10-20x faster than Jest |
Critical Rules
- Query by role first -
getByRoleis most accessible - Use userEvent, not fireEvent - Realistic interactions
- waitFor for async - Never
setTimeout - MSW for API mocking - Don't mock fetch
- Test behavior, not implementation - No internal state testing
What ships with it
19 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/accessibility-testing.md 1.6 KB
- references/async-testing.md 1.4 KB
- references/hooks-testing.md 1.4 KB
- references/installation.md 1.7 KB
- references/mocking-patterns.md 1.6 KB
- references/msw-setup.md 1.6 KB
- references/queries.md 1.5 KB
- references/react-19-hooks.md 1.7 KB
- references/templates/accessibility-audit.md 4.4 KB
- references/templates/api-integration.md 4.2 KB
- references/templates/basic-setup.md 2.6 KB
- references/templates/component-async.md 3.5 KB
- references/templates/component-basic.md 3.3 KB
- references/templates/error-boundary.md 3.6 KB
- references/templates/form-testing.md 4.1 KB
- references/templates/hook-basic.md 3.8 KB
- references/templates/suspense-testing.md 3.7 KB
- references/user-events.md 1.4 KB
- references/vitest-config.md 1.3 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago Changed 31782612072c
- 3mo ago Changed 8ad91026b04d
- 3mo ago First seen · 176 lines · 34 tokens per session scan A a020354f3401
react-testing is a skill published in the GitHub repository fusengine/agents (34 stars, last pushed 1mo ago), licensed MIT. It adds 34 tokens to every session and 1,429 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
react-testing compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| react-testingfusengine/agents | Skill | 34 | 1mo ago | MIT | A | 34 | Claude Code |
| debugbromso/metapowers | Skill | 3 | 1mo ago | MIT | A | 52 | Claude Code |
| craft-pestmichtio/craftcms-claude-skills | Skill | 93 | yesterday | Apache-2.0 | A | 159 | Claude Code |
| test-strategy-documentfattain-naime/engineering-docs | Skill | 5 | 19d ago | MIT | A | 62 | Claude Code |
| seamsmikestangdevs/craft-skills | Skill | 4 | 25d ago | MIT | A | 71 | Claude Code |
| ccpa-compliancebromso/metapowers | Skill | 3 | 1mo ago | MIT | A | 80 | Claude Code |
| data-processing-agreementbromso/metapowers | Skill | 3 | 1mo ago | MIT | A | 68 | Claude Code |