Official agent skill

React Testing

by getsentry in getsentry/sentry

Write and review React/TypeScript tests for Sentry's frontend using Jest and React Testing Library.

OfficialCustom licenceAuto-check passedTesting & QA

Install React Testing

skills CLI
$ npx skills add getsentry/sentry --skill react-testing -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install getsentry/sentry react-testing --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/getsentry/sentry.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/react-testing .claude/skills/react-testing && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
react-testing
GitHub stars
46k
Token cost
~2.2k tokens
SKILL.md length
326 words
Files
1
Skills in repo
29
Repo updated
First seen
Licence
Custom licence

At a glance

Write and review React/TypeScript tests for Sentry's frontend using Jest and React Testing Library.

  • Works in 4 steps: getByRole - Primary selector for most… → getByLabelText/getByPlaceholderText -… → getByText - For non-interactive elements → …
  • Editing tests in static/ (.spec.tsx)
  • SKILL.md covers Testing Philosophy, Imports, Query Priority (in order of… and Best Practices
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

React Testing is an agent skill from getsentry/sentry, published by the product's own GitHub organization. Write and review React/TypeScript tests for Sentry's frontend using Jest and React Testing Library. Use when adding or editing tests in static/ (.spec.tsx), writing component/hook tests, mocking API responses with MockApiClient, testing routing or network requests, or when asked to "write a frontend test", "add a React test", "test this component", or "fix a flaky RTL test".

Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Testing & QA, covering Unit testing and React components. It works with React, Sentry, Jest and Testing Library. The repository describes itself as: Developer-first error tracking and performance monitoring.

When your agent uses it

  • Editing tests in static/ (.spec.tsx)
  • Writing component/hook tests
  • Mocking API responses with MockApiClient
  • Testing routing

Example prompts

  • “write a frontend test”
  • “add a React test”
  • “test this component”
  • “/react-testing”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. getByRole - Primary selector for most elements
  2. getByLabelText/getByPlaceholderText - For form elements
  3. getByText - For non-interactive elements
  4. getByTestId - Last resort only

What it can do on your machine

Read from SKILL.md and the folder at commit 99b4c2b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

React Testing loads about 2.2k tokens when it runs. Until then it costs about 98 tokens; SKILL.md has 326 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~98
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 326 words (~2,208 tokens).

“Always import from sentry-test/reactTestingLibrary, not directly from @testing-library/react:”

— opening of SKILL.md by getsentry, Custom licence
name
react-testing

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .agents/skills/react-testing of getsentry/sentry.

Open the folder on GitHubat commit 99b4c2b

Compare with similar skills

React Testing next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

React Testing compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
React Testing this skillgetsentry/sentry46k—~2.2kAutomated safety check: PassCustom licence
Unit TestsKhan/wonder-blocks163—~4.2kAutomated safety check: PassMIT
React Testingaffaan-m/ECC275k1 repos~3.3kAutomated safety check: PassMIT
Hilla TestAI-Unified-Process/marketplace141—~3.9kAutomated safety check: WarnApache-2.0
React TestingHoangNguyen0403/agent-skills-standard571—~1.3kAutomated safety check: PassMIT
Typescript Rulessoftspark/ai-toolkit179—~2.7kAutomated safety check: NotesApache-2.0

Similar skills

  • Unit Tests

    Khan/wonder-blocks

    Jest + React Testing Library best practices for Wonder Blocks unit tests.

    163 GitHub stars~4.2k tokensUpdated today
    Testing & QAAuto-check passed
  • React Testing

    affaan-m/ECC

    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…

    275k GitHub starsUsed in 1 repo~3.3k tokens
    Testing & QAAuto-check passed
  • Hilla Test

    AI-Unified-Process/marketplace

    Creates tests for Hilla use cases on both sides of the browser boundary: Vitest + React Testing Library tests for the React/TypeScript view (with the generated endpoint clients mocked) and Spring…

    141 GitHub stars~3.9k tokensUpdated 2 days ago
    Testing & QAAuto-check: warnings
  • React Testing

    HoangNguyen0403/agent-skills-standard

    Test React components with RTL and Jest/Vitest. An agent skill from HoangNguyen0403/agent-skills-standard.

    571 GitHub stars~1.3k tokensUpdated today
    Testing & QAAuto-check passed
  • Typescript Rules

    softspark/ai-toolkit

    TypeScript/JavaScript coding rules: style, patterns, security, testing.

    179 GitHub stars~2.7k tokensUpdated yesterday
    Testing & QAAuto-check: notes
  • Write Tests

    grafana/synthetic-monitoring-app

    Official

    Write Jest integration and unit tests for the Grafana Synthetic Monitoring app using React Testing Library, MSW, and src/test helpers.

    171 GitHub stars~1.2k tokensUpdated today
    Testing & QAAuto-check passed

More from getsentry/sentry

All 29 skills in this repo
  • Scraps Review

    getsentry/sentry

    Official

    Filter large Sentry Scraps design-system migration PRs for review by separating mechanical import-path changes, generated baseline updates, snapshot mocks, and pure renames from substantive…

    46k GitHub stars~1.2k tokensUpdated today
    Auto-check: notes
  • Analytics

    getsentry/sentry

    Official

    Instrument and discover analytics events in Sentry's frontend UI.

    46k GitHub stars~2.5k tokensUpdated today
    Auto-check passed
  • Hybrid Cloud Outboxes

    getsentry/sentry

    Official

    Guide for creating and maintaining outbox-based eventually consistent operations in Sentry.

    46k GitHub stars~4.8k tokensUpdated today
    Auto-check passed
  • Hybrid Cloud Rpc

    getsentry/sentry

    Official

    Guide for creating, updating, and deprecating hybrid cloud RPC services in Sentry.

    46k GitHub stars~4k tokensUpdated today
    Auto-check passed
  • Hybrid Cloud Test Gen

    getsentry/sentry

    Official

    Generate hybrid cloud tests for the Sentry codebase. An agent skill from getsentry/sentry.

    46k GitHub stars~2.6k tokensUpdated today
    Auto-check passed
  • Lint Fix

    getsentry/sentry

    Official

    Fix violations of an eslintPluginScraps rule across the codebase.

    46k GitHub stars~1k tokensUpdated today
    Auto-check passed

Categories

Questions about React Testing

What does React Testing do?

Write and review React/TypeScript tests for Sentry's frontend using Jest and React Testing Library. React Testing is an agent skill from getsentry/sentry, published by the product's own GitHub organization. Write and review React/TypeScript tests for Sentry's frontend using Jest and React Testing Library.

When should I use React Testing?

React Testing fits situations like: editing tests in static/ (.spec.tsx); writing component/hook tests; mocking API responses with MockApiClient; testing routing.

How do I install React Testing in Claude Code?

Run `npx skills add getsentry/sentry --skill react-testing -a claude-code`. Or copy the skill folder (.agents/skills/react-testing in getsentry/sentry) into .claude/skills/react-testing in your project. Claude Code loads it when a task matches its description.

How do I install React Testing in Codex?

Run `npx skills add getsentry/sentry --skill react-testing -a codex`. Or copy the skill folder (.agents/skills/react-testing in getsentry/sentry) into .agents/skills/react-testing in your project. Codex loads it when a task matches its description.

Can I use React Testing in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add getsentry/sentry --skill react-testing -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/react-testing, .gemini/skills/react-testing, .github/skills/react-testing and .opencode/skills/react-testing in your project.

What does React Testing need to run?

SKILL.md names no scripts, command-line tools or credentials: React Testing is instructions for the agent only.

Does React Testing access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is React Testing safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does React Testing use?

React Testing has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does React Testing use?

About 2.2k tokens (SKILL.md is roughly 8.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to React Testing?

Skills that share tags, products or a category with React Testing: Unit Tests (Khan/wonder-blocks, 163 stars), React Testing (affaan-m/ECC, 275k stars), Hilla Test (AI-Unified-Process/marketplace, 141 stars) and React Testing (HoangNguyen0403/agent-skills-standard, 571 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains React Testing?

getsentry (a GitHub organization, an official publisher) maintains it in getsentry/sentry, which has 45,505 GitHub stars. The repository holds 29 skills in this directory. The repository was last updated on October 8, 2026.

Source: getsentry/sentry on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.