Documentation Index
Fetch the complete documentation index at: https://mintlify.com/prismatic-io/spectral/llms.txt
Use this file to discover all available pages before exploring further.
Import
Signature
loggerMock creates an ActionLogger where each log-level method is a jest/vitest spy backed by the matching console method. The metric method is a plain console.log call (not a spy).
You rarely need to call
loggerMock directly. Both invoke and invokeTrigger create one automatically and return it as loggerMock in the result. Call loggerMock directly only when you need to inject a logger into a context you build yourself.Return value
Returns anActionLogger object.
Spy wrapping
console.trace.Spy wrapping
console.debug.Spy wrapping
console.info.Spy wrapping
console.log.Spy wrapping
console.warn.Spy wrapping
console.error.Plain
console.log call. Not a spy — cannot be asserted against.Implementation
Examples
Related
- invoke — returns
loggerMockin its result - invokeTrigger — returns
loggerMockin its result - invokeFlow — returns
loggerMockin its result
