UNPKG

syntropylog

Version:

An instance manager with observability for Node.js applications

14 lines (13 loc) 497 B
import { SpyTransport } from '../logger/transports/SpyTransport'; /** * The collection of tools returned by `syntropyLog.setupTestHarness()`, * designed to facilitate testing of application logic that uses SyntropyLog. */ export interface SyntropyLogTestHarness { /** * A spy transport that captures all log entries in memory. * Use its methods (`getEntries`, `findEntries`, `clear`) to make * assertions about what has been logged. */ spyTransport: SpyTransport; }