detox --debug-synchronization not working

Viewed 401

I am trying to figure out what parts of my React Native app are causing Detox to wait unnecessarily long as instructed in the documentation. However, when I run:

detox test --debug-synchronization 20

I get no additional output, only the regular Jest output. I know for a fact that there are network requests slower than that, setTimeout's of 400 ms and animations which are slowing Detox down, but it doesn't output them.

What could be causing the output not to work?

1 Answers

This feature had a bug before and they just fixed it in this release: 18.18.0

You may consider this apprach as well

await device.disableSynchronization();

put this line before interacting with the animated element and then you can enable the synchorization again

await device.enableSynchronization();
Related