testing-react

testing-react is a skill for Claude Code from LandonSchropp/agent-toolkit. It costs 13 tokens per session (156 once invoked), scanned A, original, MIT.

A testing guide for React hooks, which are functions that let React components use state and other features.

In plain words
What is it for?
It is for writing or changing automated tests for React hooks.
Why use it?
It helps verify hook behaviour without having to test an entire application manually.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the ls-typescript plugin — 7 skills, 1 command shipped together

Good fit It is for writing or changing automated tests for React hooks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/landonschropp/agent-toolkit/testing-react
Install

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.

Any agent
npx skills add LandonSchropp/agent-toolkit --skill testing-react
Clone the repo
git clone --depth 1 https://github.com/LandonSchropp/agent-toolkit

Made for: Claude Code.

Or install ls-typescript, the plugin that ships this one along with the rest of its 7 skills, 1 command.

Wrote 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.

agentmods badge for testing-react

README.md
[![agentmods](https://agentmods.dev/badge/skills/landonschropp/agent-toolkit/testing-react/github.svg)](https://agentmods.dev/skills/landonschropp/agent-toolkit/testing-react)
Your own site
<a href="https://agentmods.dev/skills/landonschropp/agent-toolkit/testing-react"><img src="https://agentmods.dev/badge/skills/landonschropp/agent-toolkit/testing-react/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.

agentmods 80×15 button for testing-react

Your own site · 80×15
<a href="https://agentmods.dev/skills/landonschropp/agent-toolkit/testing-react"><img src="https://agentmods.dev/badge/skills/landonschropp/agent-toolkit/testing-react.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 156 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00013 $0.00156
Opus 5.5 $0.00005 $0.00062
Sonnet 5.5 $0.00003 $0.00031
Haiku 4.5 $0.00001 $0.00016

Measured 1mo ago against content hash 82be989395f1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

testing-react 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 1mo 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.

plugins/ls-typescript/skills/testing-react/SKILL.md · 19 lines

What it actually says

Testing React Hooks

Use renderHook and act from @testing-library/react. Don't write a probe component — renderHook is the affordance for testing a hook in isolation.

import { useMyHook } from "./use-my-hook.ts";
import { act, renderHook } from "@testing-library/react";

const { result, rerender, unmount } = renderHook(() => useMyHook(arg));
expect(result.current).toBe(/* ... */);

renderHook needs DOM globals. A typical React project provides them through its configured test environment (jsdom or happy-dom), so no per-test setup is required.

Changes

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.

  1. 1mo ago Changed · +1 lines · +3 tokens per session 82be989395f1
  2. 1mo ago First seen · 18 lines · 10 tokens per session scan A ab0e08b4a84f

Subscribe to this mod's changes

testing-react is a skill published in the GitHub repository LandonSchropp/agent-toolkit (3 stars, last pushed yesterday), licensed MIT. It adds 13 tokens to every session and 156 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.

Related

Other skills, from other repositories

appbuilder-testing

Generate and run tests for Adobe App Builder actions and UI components. Scaffolds Jest unit tests, integration tests against deployed actions, contract tests for Adobe API interactions, and React component tests using Testing Library. Provides mock helpers for State, Files, Events SDKs, @adobe/aio-lib- clients, ExC…

adobe/skills · 201 tokens

unit-test-caching

Provides patterns for unit testing Spring Cache annotations (@Cacheable, @CachePut, @CacheEvict). Generates test code that mocks cache managers, verifies cache hit/miss behavior, tests cache key generation with SpEL expressions, validates eviction strategies, and checks conditional caching scenarios. Triggers: caching…

giuseppe-trisciuoglio/developer-kit · 88 tokens

loom-c

C language expertise (C11/C17/C23) for memory-safe, portable, production-quality systems code.

cosmix/loom · 25 tokens

spring-boot-test-patterns

Provides comprehensive testing patterns for Spring Boot applications covering unit, integration, slice, and container-based testing with JUnit 5, Mockito, Testcontainers, and performance optimization. Use when writing tests, @Test methods, @MockBean mocks, or implementing test suites for Spring Boot applications.

giuseppe-trisciuoglio/developer-kit · 64 tokens

unit-test-boundary-conditions

Provides edge case, corner case, boundary condition, and limit testing patterns for Java unit tests. Validates minimum/maximum values, null cases, empty collections, numeric overflow/underflow, floating-point precision, and off-by-one scenarios using JUnit 5 and AssertJ. Use when writing .java test files to ensure…

giuseppe-trisciuoglio/developer-kit · 84 tokens

unit-test-config-properties

Provides patterns for unit testing @ConfigurationProperties classes with @ConfigurationPropertiesTest. Validates property binding, tests validation constraints, verifies default values, checks type conversions, and mocks property sources for Spring Boot configuration properties. Use when testing application…

giuseppe-trisciuoglio/developer-kit · 75 tokens