Can the unit be tested without mocking dependencies? If it can’t, it’s tightly coupled to the mocked dependencies.
Mocking is a Code Smell
Eric Elliott
7.8K57

The dependencies here help support the one-function-one-responsibility where the dependencies execute part of the job of the function. I don’t see coupling if the dependency is used as a contract with input->output What’s wrong with that?

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.