PURISTA API / @purista/core / getLoggerMock
Function: getLoggerMock()
getLoggerMock(
sandbox
?):object
Defined in: packages/core/src/mocks/getLogger.mock.ts:11
Mocks the logger and methods are stubs
Parameters
sandbox?
SinonSandbox
Returns
object
logger mocked
mock
mock:
Logger
stubs
stubs:
object
stubs.debug
stubs.debug:
SinonStub
<any
[],any
>
stubs.error
stubs.error:
SinonStub
<any
[],any
>
stubs.fatal
stubs.fatal:
SinonStub
<any
[],any
>
stubs.info
stubs.info:
SinonStub
<any
[],any
>
stubs.trace
stubs.trace:
SinonStub
<any
[],any
>
stubs.warn
stubs.warn:
SinonStub
<any
[],any
>