You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm trying to encapsulate Matomo in jest mocking for my unit test. Everything worked well with useMatomo but as soon as it goes to newMatomoTracker everything goes wrong.
Following the readme, here's my implementation in my app.tsx :
Hi, I'm trying to encapsulate Matomo in jest mocking for my unit test. Everything worked well with useMatomo but as soon as it goes to newMatomoTracker everything goes wrong.
Following the readme, here's my implementation in my app.tsx :
And my react-native-mock :
I've tried both default / define MatomoTracker but I end up with the same error :
TypeError: _matomoTrackerReactNative.default is not a constructor
If you have any idea about how to fix it
Thanks
The text was updated successfully, but these errors were encountered: