2 ms·
> A lot of people don’t really understand the point of testing, but this behavior is pretty far down on the spectrum. I did "unit testing" and dependency injec
by maerF0x0 6y ago
> A lot of people don’t really understand the point of testing, but this behavior is pretty far down on the spectrum.
I did "unit testing" and dependency injection of "mocks" for years before I actually gave them the thought and learning they required. Frequently we treat testing as a barrier to the the already "good enough" code we want to put in production. We miss that the larger production is (feature wise), the worse the tradeoff of marginally adding one feature to potentially taking many/all down...
Reading the sinon.js documentation https://sinonjs.org/releases/v9.2.1/ https://sinonjs.org/releases/v9.2.1/ really helped clarify the roles of various spies,stubs,mocks et al that IMO is required to