2 ms·
There’s no reason you can’t setup your tests so that mimic stubs out your module or a subset of functions in your module everywhere where you don’t explicitly o
by sarchertech 3y ago
There’s no reason you can’t setup your tests so that mimic stubs out your module or a subset of functions in your module everywhere where you don’t explicitly override it.
The main difference is that the extra dispatch layer is only injected at test time, so there’s no extra indirection in the production code.