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
I have an issue when i try to mock axios-observable with jest. jest.mock("axios-observable", () => Object.assign( jest.fn(), { get: jest.fn() } ));
Here's how i try to mock it.
But i got an error when executing my test saying :
'TypeError: _axiosObservable.default.get(...).pipe is not a function'
Any idea of what going wrong or any exemple of mocking exemple implementation ?
Thanks by advance,
Best Regards
The text was updated successfully, but these errors were encountered:
I have an issue when i try to mock axios-observable with jest.
jest.mock("axios-observable", () => Object.assign( jest.fn(), { get: jest.fn() } ));
Here's how i try to mock it.
But i got an error when executing my test saying :
'TypeError: _axiosObservable.default.get(...).pipe is not a function'
Any idea of what going wrong or any exemple of mocking exemple implementation ?
Thanks by advance,
Best Regards
The text was updated successfully, but these errors were encountered: