Install
$ agentstack add skill-cmaranho-rn-agent-skills-rn-testing ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
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.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: cmaranho
- Source: cmaranho/rn-agent-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.