🎯

react-native-testing

🎯Skill

from pluginagentmarketplace/custom-plugin-react-native

VibeIndex|
What it does

Enables comprehensive React Native testing with Jest, Testing Library, Detox, and CI/CD integration for robust mobile app quality assurance.

πŸ“¦

Part of

pluginagentmarketplace/custom-plugin-react-native(9 items)

react-native-testing

Installation

Add MarketplaceAdd marketplace to Claude Code
/plugin marketplace add pluginagentmarketplace/custom-plugin-react-native
Install PluginInstall plugin from marketplace
/plugin install react-native-assistant@pluginagentmarketplace-react-native
git cloneClone repository
git clone https://github.com/pluginagentmarketplace/custom-plugin-react-native.git
Claude CodeAdd plugin in Claude Code
/plugin load .
πŸ“– Extracted from docs: pluginagentmarketplace/custom-plugin-react-native
29Installs
-
AddedFeb 4, 2026

Skill Details

SKILL.md

Master testing - Jest, Testing Library, Detox E2E, and CI/CD integration

Overview

# React Native Testing Skill

> Learn comprehensive testing strategies including unit tests, component tests, and E2E tests.

Prerequisites

  • React Native basics
  • Understanding of async/await
  • Familiarity with testing concepts

Learning Objectives

After completing this skill, you will be able to:

  • [ ] Configure Jest for React Native
  • [ ] Write component tests with Testing Library
  • [ ] Mock native modules and APIs
  • [ ] Implement E2E tests with Detox/Maestro
  • [ ] Set up CI/CD test pipelines

---

Topics Covered

1. Jest Setup

```javascript

// jest.config.js

module.exports = {

preset: 'react-native',

setupFilesAfterEnv: ['@testing-library/jest-native/extend-expect'],

transformIgnorePatterns: [

'node_modules/(?!(react-native|@react-native)/)',

],

};

```

2. Component Testing

```tsx

import { render, screen, fireEvent } from '@testing-library/react-native';

import { Button } from './Button';

describe('Button', () => {

it('calls onPress when pressed', () => {

const onPress = jest.fn();

render(

Quick Start Example

```tsx

// ProductCard.test.tsx

import { render, screen, fireEvent } from '@testing-library/react-native';

import { ProductCard } from './ProductCard';

const mockProduct = {

id: '1',

title: 'Test Product',

price: 99.99,

};

describe('ProductCard', () => {

it('renders product info', () => {

render();

expect(screen.getByText('Test Product')).toBeOnTheScreen();

expect(screen.getByText('$99.99')).toBeOnTheScreen();

});

it('handles press', () => {

const onPress = jest.fn();

render();

fireEvent.press(screen.getByRole('button'));

expect(onPress).toHaveBeenCalledWith('1');

});

});

```

---

Common Errors & Solutions

| Error | Cause | Solution |

|-------|-------|----------|

| "Cannot find module" | Missing mock | Add jest.mock() |

| Async timeout | Missing await | Use waitFor() |

| Element not found | Wrong query | Check testID/role |

---

Validation Checklist

  • [ ] Unit tests pass
  • [ ] Component tests cover interactions
  • [ ] E2E tests complete flows
  • [ ] Coverage meets threshold (80%+)

---

Usage

```

Skill("react-native-testing")

```

Bonded Agent: 06-react-native-testing