react-test-engineer

react-test-engineer is a skill for Claude Code, Codex from GrishaAngelovGH/gemini-cli-agent-skills. It costs 44 tokens per session (1,935 once invoked), scanned A, original, MIT.

Testing guidance for React user interfaces using Vitest and React Testing Library, tools for running tests and checking what users see and do.

In plain words
What is it for?
Use it to write unit and integration tests for buttons, forms, asynchronous content, and other React interactions using user-oriented queries.
Why use it?
It helps tests focus on visible behavior and accessibility instead of fragile internal implementation details.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { AuthProvider } from '../context/auth';.

Good fit Use it to write unit and integration tests for buttons, forms, asynchronous…

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/GrishaAngelovGH/gemini-cli-agent-skills
agentmods
npx agentmods add skills/grishaangelovgh/gemini-cli-agent-skills/react-test-engineer

Made for: Claude Code, Codex.

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 react-test-engineer

README.md
[![agentmods](https://agentmods.dev/badge/skills/grishaangelovgh/gemini-cli-agent-skills/react-test-engineer.svg)](https://agentmods.dev/skills/grishaangelovgh/gemini-cli-agent-skills/react-test-engineer)
Your own site
<a href="https://agentmods.dev/skills/grishaangelovgh/gemini-cli-agent-skills/react-test-engineer"><img src="https://agentmods.dev/badge/skills/grishaangelovgh/gemini-cli-agent-skills/react-test-engineer.svg" alt="Measured on agentmods" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,935 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.00044 $0.01935
Opus 5 $0.00022 $0.00967
Sonnet 5 $0.00009 $0.00387
Haiku 4.5 $0.00004 $0.00194

Measured 7d ago against content hash b3ecfa698a40, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

react-test-engineer 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 7d 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.

react-test-engineer/SKILL.md · 241 lines

How it starts

The opening of the file, as written. The whole thing — 241 lines — stays where its author put it; the contents beside it link to each section on GitHub.

React Testing Engineer Instructions (Vitest Edition)

You are an expert in testing React applications using Vitest and React Testing Library (RTL). Your goal is to write tests that give confidence in the application's reliability by simulating how users interact with the software.

Core Principles

  1. Test Behavior, Not Implementation:

    • Do not test state updates, internal component methods, or lifecycle hooks directly.
    • Test what the user sees and interacts with.
    • Refactoring implementation details should not break tests if the user-facing behavior remains the same.
  2. Use React Testing Library (RTL) Effectively:

    • Queries: Prioritize queries that resemble how users find elements.
      1. getByRole (accessibility tree) - PREFERRED. Use the name option to be specific (e.g., getByRole('button', { name: /submit/i })).
      2. getByLabelText (form inputs)
      3. getByPlaceholderText
      4. getByText
      5. getByDisplayValue
      6. getByAltText (images)
      7. getByTitle
      8. getByTestId (last resort, use data-testid)
    • Async Utilities: Use findBy* queries for elements that appear asynchronously. Use waitFor sparingly and only when necessary for non-element assertions.
  3. User Interaction:

    • ALWAYS use @testing-library/user-event instead of fireEvent. user-event simulates full browser interaction (clicks, typing, focus events) more accurately.
    • Instantiate user session: const user = userEvent.setup() at the start of the test.
  4. Accessibility (A11y):

    • Ensure components are accessible.
    • Use vitest-axe to catch common a11y violations automatically. See the example in Common Patterns below.

Vitest Setup & Configuration

Ensure the project is configured correctly for React testing with Vitest.

1. Dependencies

npm install -D vitest jsdom @testing-library/react @testing-library/jest-dom @testing-library/user-event vitest-axe

Read the full file on GitHub · 241 lines

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. 7d ago First seen · 241 lines · 44 tokens per session scan A b3ecfa698a40

Subscribe to this mod's changes

react-test-engineer is a skill published in the GitHub repository GrishaAngelovGH/gemini-cli-agent-skills (16 stars, last pushed 6mo ago), licensed MIT. It adds 44 tokens to every session and 1,935 once invoked, about $0.0002 per session on Opus 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-08-30.

Related

Other skills, from other repositories

sfnext-testing

Write tests for Storefront Next using Vitest unit tests, Storybook stories, interaction tests, snapshot tests, and accessibility tests. Use when writing component tests, creating Storybook stories, running test coverage, or setting up test utilities. Covers testing-library patterns, play functions, and coverage…

SalesforceCommerceCloud/b2c-developer-tooling · 63 tokens

react-testing

Testing Library for React 19 - render, screen, userEvent, waitFor, Suspense. Use when writing tests for React components with Vitest.

fusengine/codex · 34 tokens

react-testing

React component testing with React Testing Library, Vitest/Jest, MSW for network mocking, accessibility assertions with axe, and the decision boundary between component tests and Playwright/Cypress end-to-end runs. Use when writing or fixing tests for React components, hooks, or pages.

ronmkr/PromptBook · 59 tokens

angular-testing

Write Angular component tests using TestBed, ComponentHarness, and HttpTestingController with proper signal input handling. Use when writing component tests, mocking HTTP calls, or testing signal inputs.

HoangNguyen0403/agent-skills-standard · 39 tokens

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

testing

Skill "testing" from udecode/plate-playground-template, covering testing goal, core rules, seam selection, fixtures and assertions and quick reference.

udecode/plate-playground-template · 5 tokens