react-native-debugger
react-native-debugger copied to clipboard
[WIP] E2E Test: Add tests for running real RN app
TODO
- [x] Context Menu:
should show AsyncStorage content as expected - [x] Context Menu:
should clear AsyncStorage as expected - [x] Context Menu:
should send Network request as expected if Network Inspsect enabled - [ ] Test with Redux DevTools
- [x] Test with React DevTools
- [ ] Test with Apollo Client DevTools
- [ ] Run tests on CI
- [ ] TestApp: Fix install errors on Node 9
Test plan
- Use Detox to control the simulator
- Use
NativeModules.DevSettings.setIsDebuggingRemotely(true)to enforce app use debug mode - Use Spectron to launch RNDebugger
- Test context menu functions (AsyncStorage / Networks Inspect)
- Test with Redux / MobX app and Redux DevTools
- Test React DevTools behavior
- Test with Apollo Client DevTools
CI plan
- It might running on macOS only
- Followed the guide for running on CI
Hey @jhen0409, do you need any help regarding detox? If you have any questions feel free to ask.
I see that you are trying to use jest for detox, from my experience mocha works a lot more reliably.