2 ms·
Bypass is a nice alternative if the client is what's under test. Often it's not. > passing in fake adapters to Req, or injecting a dispatch layer at test time
by goosejuice 3y ago
Bypass is a nice alternative if the client is what's under test. Often it's not.
> passing in fake adapters to Req, or injecting a dispatch layer at test time with Mimic.
I see, so you buy into DI for the purposes of testing but you prefer a more terse approach than what behaviours offer. The extra module never really bothered me and the contents are mostly what would go into the implementation anyway. LSP provides documentation all the same.
> I’ve been doing this for 20 years, you’re definitely never going to convince me
I certainly appreciate your input, I like to learn new things, but have little interest in trying to convince anyone that makes such a dogmatic statement. An unfortunate thing to hear from a principle developer. I hope your coworkers agree with you.