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.
npx skills add cmaranho/rn-agent-skills --skill rn-testinggit clone --depth 1 https://github.com/cmaranho/rn-agent-skillsWrote 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.
[](https://agentmods.dev/skills/cmaranho/rn-agent-skills/rn-testing)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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
- Identifique a camada e o comportamento observável a validar.
- Isole a unidade: mocke rede, navegação, stores e módulos nativos.
- Escreva casos em Arrange/Act/Assert; descrições com "should".
- Cubra sucesso, erro e borda (
null/undefined/vazio/limites). - 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.
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.
- 8d ago First seen · 52 lines · 54 tokens per session scan A 37ae70b7871e
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.
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.
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"…
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…
testing-reactnative
Testing React Native 0.85+. Use when writing tests, reviewing test coverage, or setting up testing.
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…
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.