AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Rn Testing

skill-cmaranho-rn-agent-skills-rn-testing · by cmaranho

Escreve e executa testes automatizados em React Native — unitários, de componente, de hook, de store e E2E. Use ao criar testes, definir estratégia de teste, mockar dependências ou corrigir falhas na suíte.

No reviews yet
0 installs
30 views
0.0% view→install

Install

$ agentstack add skill-cmaranho-rn-agent-skills-rn-testing

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No 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.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-cmaranho-rn-agent-skills-rn-testing)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

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 →
Are you the author of Rn Testing? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

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

  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.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.