ngMocks.ignoreOnConsole
ngMocks.ignoreOnConsole
suppresses console.log
with a spy (if auto spy is being used).
ngMocks.ignoreOnConsole
suppresses the functions for the current test suite in beforeAll
and restores in afterAll
.
Also, any other methods can be stubbed:
ngMocks.ignoreOnConsole('log', 'err', 'warn');