Amy Blankenship
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.

--

--

Amy Blankenship
Amy Blankenship

Written by Amy Blankenship

Full Stack developer at fintech company. I mainly write about React, Javascript, Typescript, and testing.

No responses yet