How and When to Use Mocks or Spies on Unit Testing
A few days ago, my friend was writing tests for an Angular App with two dependencies and wanted to test his code. I suggested that he should Spy and Mock the dependencies.
When deciding whether to use a Mock or a Spy, it is important to consider the ...
danywalls4.hashnode.dev5 min read