Mocking the return value of a function inside a module is tricky and I don't understand why this happens:
- getConsents: mockGetConsents ❌
- getConsents: () => mockGetConsents() ✅
#react-native #jest #testing #react
Mocking the return value of a function inside a module is tricky and I don't understand why this happens:
- getConsents: mockGetConsents ❌
- getConsents: () => mockGetConsents() ✅
#react-native #jest #testing #react