Sourcery
Sourcery copied to clipboard
Added ability to wrap mocks under define
Currently mocks don't have ability to be hidden for some purposes, e.g. release/production. Yes, we can generate them only in unit-test targets, but this approach does not work in multi-modules real app: when I want mocks from moduleA in tests of moduleB and moduleC.
So it's better to put generated mocks in moduleA, but wrap them under define, so they will not expose in release code.
To do that, I add new optional argument mockWrapDefine
1 Error | |
---|---|
:no_entry_sign: | Any changes to library code need a summary in the Changelog. |
Generated by :no_entry_sign: Danger
@pavel-trafimuk mind adding info to the template docs?
Please let me few days to update this MR