Rn Write Tests

Use to write tests for an Expo + RN app: Jest + React Native Testing Library for unit/integration (components, hooks, queries, mutations) and Maestro for end-to-end flows (sign-in, navigation, forms). Sets up the testing stack on first call (jest-expo preset, RNTL, jest config) and writes a focused test next to the source file. Triggers on: "write tests for X", "add e2e test", "two-user flow", "multi-user test", "test con due utenti", "shared state between users", "mock expo-notifications", "test this hook". Not for: choosing what to test (the user decides), running the existing test suite (just `npm test`), or testing pure logic outside an Expo project.

lukedj78 1c16fdc 7 files · 79.0 KB Updated

File contents

lukedj78/dev-flow/tree/main/rn-write-tests commit 1c16fdc6ff

Frequently asked questions

npx skillmds@latest add lukedj78/rn-write-tests