Open Bilal112 opened 3 years ago
U can try to mock it:
jest.mock('@react-native-community/geolocation', () => ({
addListener: jest.fn(),
getCurrentPosition: jest.fn(),
removeListeners: jest.fn(),
requestAuthorization: jest.fn(),
setConfiguration: jest.fn(),
startObserving: jest.fn(),
setRNConfiguration: jest.fn(),
stopObserving: jest.fn(),
}));
Ask your Question
GeoLocation. setRNConfigration is not working jest![image](https://user-images.githubusercontent.com/23139110/129551702-c1621dcd-e7bd-43c3-bf72-d8979edd2fa4.png)