Closed EdgarOrtegaRamirez closed 6 months ago
I like the idea of having a single point of resetting all mocks.
I've added the ability in v3.1.0-beta.0
. You can test it if you have a moment.
The API is exactly as you suggested: mockClient(client, { sandbox: mySandbox })
My project has a Sinon sandbox used to restore all stub/spies/mocks on a
afterEach
global hook. I would like to configuremockClient
to use it likemockClient(Client, { sandbox: mySandbox })
or any other configuration method