reset()

Removes all mounted mock services. Best practice is to execute .reset() in an "after each" test hook. Example usage with Mocha:

// unmounts all mounted services after each test
afterEach(() => mockyeah.reset());

results matching ""

    No results matching ""