Jun 13, 2021
If you want to create a mock of console, for example, you have to know its full type. And who cares? All you actually need is an object with log and error methods that are spies.
You waste ALL KINDS of times researching the types of code that doesn't much matter to the code you're trying to test.