rn-testing

rn-testing is a skill for Claude Code, Codex from cmaranho/rn-agent-skills. It costs 54 tokens per session (448 once invoked), scanned A, original, MIT.

A testing skill for React Native, the framework used to build mobile apps with React. It covers tests for individual functions, screens and components, reusable hooks, shared stores, and complete app flows.

In plain words
What is it for?
Use it to create or update React Native tests, choose mocks, investigate test failures, and validate behavior with unit, component, hook, store, and end-to-end tests.
Why use it?
It provides a structured way to isolate dependencies, check success and failure cases, and reduce flaky tests that behave differently from run to run.

Skill for Claude CodeCodex

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

Good fit Use it to create or update React Native tests, choose mocks, investigate test failures, and validate behavior with unit, component, hook, store, and end-to-end tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cmaranho/rn-agent-skills/rn-testing
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 cmaranho/rn-agent-skills --skill rn-testing
Clone the repo
git clone --depth 1 https://github.com/cmaranho/rn-agent-skills

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 rn-testing

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

agentmods 80×15 button for rn-testing

Your own site · 80×15
<a href="https://agentmods.dev/skills/cmaranho/rn-agent-skills/rn-testing"><img src="https://agentmods.dev/badge/skills/cmaranho/rn-agent-skills/rn-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 448 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.00054 $0.00448
Opus 5 $0.00027 $0.00224
Sonnet 5 $0.00011 $0.00090
Haiku 4.5 $0.00005 $0.00045

Measured 8d ago against content hash 37ae70b7871e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

rn-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 8d 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.

skills/rn-testing/SKILL.md · 52 lines

What it actually says

React Native — Testes

Objetivo

Garantir comportamento correto e regressão zero com testes rápidos, isolados e determinísticos.

Quando utilizar

  • Criar/atualizar testes de qualquer camada.
  • Definir a estratégia de mocks e isolamento.
  • Investigar falhas ou flakiness na suíte.

Conhecimentos necessários

  • Runner (ex.: Jest) e biblioteca de UI (ex.: Testing Library RN).
  • Mock de módulos antes dos imports; mock de módulos nativos.
  • Padrão de isolamento de store; fake timers.
  • E2E (ex.: Detox/Maestro) e seleção por acessibilidade.

Fluxo de execução

  1. Identifique a camada e o comportamento observável a validar.
  2. Isole a unidade: mocke rede, navegação, stores e módulos nativos.
  3. Escreva casos em Arrange/Act/Assert; descrições com "should".
  4. Cubra sucesso, erro e borda (null/undefined/vazio/limites).
  5. Rode a suíte; garanta determinismo (fake timers, sem rede real).

Boas práticas

  • Prefira queries por papel/rótulo/texto a identificadores de teste.
  • Teste comportamento, não implementação.
  • 3–5 testes focados por arquivo; nomes descritivos.
  • Reset de mocks/estado entre testes.

Armadilhas comuns

  • Vazamento de estado entre testes (mocks/store não resetados).
  • Depender de relógio ou rede reais → flaky.
  • Testar detalhes internos, quebrando a cada refactor.
  • Esquecer de mockar módulos nativos usados na árvore.

Critérios de sucesso

  • Suíte verde e determinística.
  • Camadas exigidas por regra cobertas.
  • Falhas apontam a causa real; sem flakiness.
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. 8d ago First seen · 52 lines · 54 tokens per session scan A 37ae70b7871e

Subscribe to this mod's changes

rn-testing is a skill published in the GitHub repository cmaranho/rn-agent-skills (2 stars, last pushed 2mo ago), licensed MIT. It adds 54 tokens to every session and 448 once invoked, about $0.0003 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-31.

Related

Other skills, from other repositories

mobiai-android-testing

Use when writing or running tests in an Android project — unit tests, UI tests, choosing the right framework and patterns.

ArisGuimera/MobiAI-Core · 30 tokens

flutter-testing-skill

Generates Flutter widget tests, integration tests, and golden tests in Dart. Supports local execution and TestMu AI cloud for real device testing. Use when user mentions "Flutter", "widget test", "WidgetTester", "testWidgets", "fluttertest", "integrationtest". Triggers on: "Flutter", "widget test", "Dart test"…

LambdaTest/agent-skills · 89 tokens

rn-testing

Testing React Native: Jest with jest-expo / react-native preset, React Testing Library Native, native module mocking, hook testing. Optional sections for Detox (native automation) and Maestro (declarative YAML e2e). Use this skill to: Configure Jest preset based on workflow. Write component tests with…

AratKruglik/claude-sdlc · 163 tokens

testing-reactnative

Testing React Native 0.85+. Use when writing tests, reviewing test coverage, or setting up testing.

TheBeardedBearSAS/claude-craft · 26 tokens

setting-up-host-vs-device-tests

Use this skill to choose between host (Robolectric/JVM) and device (instrumentation) tests for Jetpack Compose, and to configure each correctly. Covers the androidHostTest (a.k.a. src/test/) vs androidDeviceTest (a.k.a. src/androidTest/) source set split, what each flavor can and cannot drive (RenderThread…

skydoves/android-testing-skills · 185 tokens

flutter-tester

Use when creating, writing, fixing, or reviewing tests in a Flutter project. Covers unit tests, widget tests, integration tests, Riverpod provider testing, and Mockito mocking. Provides Given-When-Then patterns, layer isolation strategies, and test setup for GetIt, SharedPreferences, and FakeDatabase.

Harishwarrior/flutter-claude-skills · 65 tokens