rn-test

Guide React Native test design and implementation across unit, component, and E2E layers.

2|Updated May 20, 2026
One-click install
npx skills add https://github.com/Yemomo511/hybrid-agent-rail --skill rn-test
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rn-test
Source: https://github.com/Yemomo511/hybrid-agent-rail/tree/main/example/.codex/skills/rn-test
Command: npx skills add https://github.com/Yemomo511/hybrid-agent-rail --skill rn-test

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

React Native developers often struggle to select appropriate test layers, configure tooling compatible with their RN version, and avoid common testing anti-patterns, leading to wasted effort on flaky, misaligned, or incomplete test suites.

Core Features & Use Cases

  • Multi-layer test guidance: Covers static analysis, Jest unit tests, React Native Testing Library component tests, snapshot tests, and Detox/Appium/Maestro E2E tests for all common RN testing needs.
  • Context-aware recommendations: Automatically adapts to your project's RN version, existing test configuration, package manager, and platform (Android/iOS/CI) requirements to avoid misconfigured setups.
  • Use case: If you're adding regression tests for a new payment feature in your RN e-commerce app, this skill will guide you to write fast unit tests for payment logic, component tests for the payment UI, and only add E2E tests for the critical end-to-end payment path.

Quick Start

Use the rn-test skill to design and implement appropriate unit, component, and E2E tests for the new user profile screen in your React Native project.

Frequently Asked Questions about rn-test

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up React Native testing for Jest, React Native Testing Library, and Detox?

React Native testing setup requires configuring Jest for unit tests, React Native Testing Library for component tests, and Detox for E2E tests. This skill provides context-aware guidance to configure these tools based on your specific RN version and platform requirements.

What is the best way to choose between unit, component, and E2E tests for a React Native feature?

Choosing the right React Native test layer involves using Jest unit tests for logic, React Native Testing Library for UI components, and Detox or Maestro E2E tests strictly for critical user paths. This skill helps eliminate misaligned testing strategies by recommending the appropriate test layer per feature.

Does Detox or Appium work better for React Native end-to-end testing on CI?

Detox, Appium, and Maestro are all viable for React Native end-to-end testing, with the best choice depending on your CI acceptance requirements and platform needs. This skill offers context-aware recommendations to ensure your E2E tooling configuration matches your existing stack.

Can I use React Native Testing Library and Jest for snapshot testing in my project?

You can use Jest and React Native Testing Library for snapshot testing alongside component and unit tests within your React Native project. This skill guides you to implement snapshot tests correctly while ensuring compatibility with your package manager and current RN version.

Why does my React Native test configuration break after updating the RN version?

React Native test configuration often breaks after an update due to misaligned tooling versions for Jest, Detox, or React Native Testing Library. This skill prevents wasted effort by adapting test configurations to your specific React Native version and existing tooling stack.