agentleFS
EstebanT1112EstebanT1112/codex-engineering-workflow/skills/react-testing/SKILL.md

react-testing

Skill0 starsChanged 3 months agoMITView on GitHub

Write or repair behavior-focused tests for React web components, hooks, and pages using the repository's existing Vitest or Jest, React Testing Library, network mocks, and accessibility assertions. Use when React test code is part of the requested change.

9 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ecc-guide, recsys-pipeline-architect and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • JunMysterySkill

    ecc-guide

    Guide users through ECC's current agents, skills, commands, hooks, rules, install profiles, and project onboarding by reading the live repository surface before answering.

    Also in 3 projects that use this

  • JunMysterySkill

    recsys-pipeline-architect

    Design composable recommendation, ranking, and feed pipelines using the six-stage Source→Hydrator→Filter→Scorer→Selector→SideEffect framework popularized by xAI's open-sourced For You algorithm. Use this skill whenever the user is building any system that picks "the top K items for a (user, context)" — social feeds, content CMSs, RAG rerankers, task prioritizers, notification triage, search reranking, ad ranking.

    Also in 3 projects that use this

  • JamkrisSkill

    agent-sort

    Build an evidence-backed ECC install plan for a specific repo by sorting skills, commands, rules, hooks, and extras into DAILY vs LIBRARY buckets using parallel repo-aware review passes. Use when ECC should be trimmed to what a project actually needs instead of loading the full bundle.

    Also in 3 projects that use this

  • JamkrisSkill

    lead-intelligence

    AI-native lead intelligence and outreach pipeline. Replaces Apollo, Clay, and ZoomInfo with agent-powered signal scoring, mutual ranking, warm path discovery, source-derived voice modeling, and channel-specific outreach across email, LinkedIn, and X. Use when the user wants to find, qualify, and reach high-value contacts.

    Also in 3 projects that use this

  • arsalllsSkill

    network-config-validation

    Pre-deployment validation of Cisco IOS/IOS-XE configuration — catching missing saves, mismatched ACLs, overlapping subnets, duplicate IPs, missing route-maps, and dangerous commands before they cause outages.

    Also in 3 projects that use this

  • aragaobrunoSkill

    vite-patterns

    Vite build tool patterns including config, plugins, HMR, env variables, proxy setup, SSR, library mode, dependency pre-bundling, and build optimization. Activate when working with vite.config.ts, Vite plugins, or Vite-based projects.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run the focused test first, then the impacted suite and repository checks.

    line 19
  2. Very specific:

    Use tdd-workflow for the red-green-refactor sequence and react-patterns for component implementation.

    line 25
  3. Distinctive:

    Do not add a new runner, DOM shim, MSW, axe, or browser framework solely because this skill names the category.

    line 27

“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

React Testing

Workflow

  1. Detect the actual React version, test runner, DOM environment, test utilities, provider wrappers, and existing conventions.
  2. Choose the smallest test that observes user-visible behavior or a stable hook contract.
  3. Query by role, name, label, or visible text and interact through the same controls a user uses.
  4. Mock network boundaries with the repository's established mechanism; avoid mocking the component's own implementation details.
  5. Cover the relevant success, failure, loading, validation, or accessibility behavior without duplicating framework behavior.
  6. Reproduce regressions with a failing test before the fix when practical.
  7. Run the focused test first, then the impacted suite and repository checks.

Test Boundary

  • Component tests cover rendering, interactions, validation, callbacks, and local request states.
  • Browser or end-to-end tests cover navigation, real browser layout, multi-page flows, and deployed integration.
  • Use tdd-workflow for the red-green-refactor sequence and react-patterns for component implementation.

Do not add a new runner, DOM shim, MSW, axe, or browser framework solely because this skill names the category.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.