Closed alexandrsimply closed 3 years ago
Hi. I have media.ts with Media class and export by default Media instance. There is a logThis function that I want to mock.
In my test file, I have a logThisMock function.
And after this, I call mediaService.logThis(); and in the terminal, I see the result of the function in my class not mocked.
Hi. I have media.ts with Media class and export by default Media instance. There is a logThis function that I want to mock.
In my test file, I have a logThisMock function.
And after this, I call mediaService.logThis(); and in the terminal, I see the result of the function in my class not mocked.