I would like to propose extending the meck API with function 'reset/1'. The function erases the call history for a mocked module or a list of mocked modules. It is intended to be called at the end of the test setup phase to prevent calls to mocked modules made during setup show up in the eventual test call history. I believe that that can make the test verification phase much more clear.
I would like to propose extending the meck API with function 'reset/1'. The function erases the call history for a mocked module or a list of mocked modules. It is intended to be called at the end of the test setup phase to prevent calls to mocked modules made during setup show up in the eventual test call history. I believe that that can make the test verification phase much more clear.