3 ms·
I’ve used mimic an I think it’s a much better option than Mox.
by sarchertech 3y ago
I’ve used mimic an I think it’s a much better option than Mox.
- sph 3y agoWe spoke about this topic for far too long today, but looking at Mimic and its "nothing is mocked unless I tell you to" design, it works only iff you are using mocks the wrong way and at the wrong boundaries.
- sarchertech 3y agoThere’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.