mcpField
T
testing-reactnative

testing-reactnative

github.com/thebeardedbearsasTesting & quality107215 installsUpdated today
Repository

About testing-reactnative

A testing practices skill for React Native 0.85+ with the New Architecture. It covers component behavior, native modules, animations, and end-to-end tests.

Key features

  1. 01Test user behavior with React Native Testing Library
  2. 02Use Jest with native module mocks
  3. 03Run end-to-end tests with Maestro or Detox
  4. 04Test TurboModules, Fabric, and Reanimated

Use cases

  1. 01Write behavior tests for React Native interfaces
  2. 02Mock synchronous JSI native modules
  3. 03Verify critical user flows
  4. 04Cover Fabric components and Reanimated animations

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/thebeardedbearsas/claude-craft --skill testing-reactnative

After installing, type/testing-reactnativein Claude Code to confirm it loaded.

Details

From the project README

Testing React Native 0.85+

Ce skill fournit les bonnes pratiques de test pour React Native 0.85+ avec la New Architecture.

Principes clés

  • React Native Testing Library (RNTL 14) : tester le comportement utilisateur, pas l'implémentation
  • Jest : runner de tests avec mocks natifs
  • Maestro (flows YAML, 2.x) ou Detox : tests E2E pour flows critiques
  • Couverture >= 80% pour la logique métier

Spécificités React Native 0.85+

  • TurboModules : mocker les modules natifs JSI synchrones (pas de bridge)
  • Fabric : tester les composants natifs avec la nouvelle architecture de rendu
  • Reanimated 4.x : tester les animations avec useAnimatedStyle et worklets

Références

Sources : RN Testing Library, Maestro, Detox

Comments

Markdown supported