T
testing-reactnative
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
- 01Test user behavior with React Native Testing Library
- 02Use Jest with native module mocks
- 03Run end-to-end tests with Maestro or Detox
- 04Test TurboModules, Fabric, and Reanimated
Use cases
- 01Write behavior tests for React Native interfaces
- 02Mock synchronous JSI native modules
- 03Verify critical user flows
- 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-reactnativeAfter installing, type/testing-reactnativein Claude Code to confirm it loaded.
Details
From the project READMETesting 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
useAnimatedStyleet worklets
Références
Sources : RN Testing Library, Maestro, Detox
Comments
Markdown supported