Jest is not always your friend...
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
26.11.2024 13:09
👍 0
🔁 0
💬 0
📌 0