'How can I test android indicator displaying with Jest in React Native?

So I want to test if the options passed to a expo-location task update correctly. And I thought the easiest option to test would be the showsBackgroundLocationIndicator one. So how can I query with Jest the android indicator, so that it displays another text or whatever.

The code is irrelevant as the only think I cannot seem to find is how to correctly query an android indicator in Jest.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source