Deep DivesApp

Testing

Testing guide for the RawStack App component.

Unit tests

Component and hook tests run with Jest and React Native Testing Library.

npm run test            # Single run
npm run test:watch      # Watch mode
npm run test:coverage   # With coverage report

Manual testing

Use the iOS Simulator and Android Emulator for UI and integration testing during development.

For device testing:

  • iOS: Connect device via USB, trust the developer certificate in Settings
  • Android: Enable USB debugging in Developer Options

E2E tests

End-to-end mobile testing can be added with Detox. Detox is not included by default but integrates well with the existing Jest setup.