Deep DivesApp
Testing
Testing guide for the RawStack App component.
The App currently focuses on Jest-based unit tests and manual testing in simulators or on devices. As a general rule, unit tests should cover components, hooks, and app-level logic, while manual testing should cover platform behaviour and complete user flows.
Unit tests
Component and hook tests run with Jest and React Native Testing Library.
npm run test
npm run test:watch
npm run test:coverageManual testing
Use the iOS Simulator and Android Emulator to test screen flows, navigation, forms, and platform-specific behaviour during development.
For device testing:
- iOS: connect the device via USB and trust the developer certificate in Settings if required
- Android: enable USB debugging in Developer Options
E2E tests
End-to-end mobile testing can be added with Detox. It is not included by default, but it fits well with the existing Jest-based workflow if the app later needs automated end-to-end coverage.