Reputation: 1225
I am trying to debug an issue where my app takes around 20 seconds to run a single test. The timeline looks like:
detox test
I tried a fresh RN app and it seemed to work without this issue.
Any advice would be greatly appreciated on how to find the issue.
Upvotes: 0
Views: 923
Reputation: 1225
For anyone with this issue I discovered the problem by running Lower-level resource debugging (https://github.com/wix/Detox/blob/master/docs/Troubleshooting.Synchronization.md#lower-level-idling-resources-debug-ios-only)
This alerted me to the fact there was a continuous animation occurring, specifically a <ActivityIndicator />
on a screen that was hidden but still causing detox to hang. Removing the <ActivityIndicator />
fixed the issue with the delay.
Upvotes: 1