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
{{ message }}
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.
@chapati23 it's not really clear from your snippets, but remember the first arg of registerMock has to be exactly what's inside require(), not just a path to the file you want to mock. Are you doing this?
My Module:
My Mock:
Expected Behavior
MyBridge.nativeCall is mocked
Actual Behavior
Error message during test run
Error: Cannot read property 'nativeCall' of undefined
I can't, for the life of me, figure this out. Mocking 3rd party modules works fine.
Any ideas? (mockery@2.0.0)
The text was updated successfully, but these errors were encountered: