As a developer
When I test my implementation of React Native FBSDK Next
And I configure the jest mock in the package
Then I expect all the AppEventsLogger functions to be mocked
To Reproduce
Write a jest test mocking the getAnonymousID function on AppEventsLogger
See an error that getAnonymousID is not a defined function
🐛 Bug Report
As a developer When I test my implementation of React Native FBSDK Next And I configure the jest mock in the package Then I expect all the AppEventsLogger functions to be mocked
To Reproduce
Write a jest test mocking the
getAnonymousID
function onAppEventsLogger
See an error thatgetAnonymousID
is not a defined functionExpected Behavior
You can successfully mock the function
Code Example