UNPKG

@baseplate-dev/sync

Version:

Library for syncing Baseplate descriptions

24 lines 746 B
export function createTestLogger() { let [errorOutput, warnOutput, infoOutput, debugOutput] = Array.from({ length: 4, }).fill(''); return { error: (message) => { errorOutput += `${String(message)}\n`; }, warn: (message) => { warnOutput += `${String(message)}\n`; }, info: (message) => { infoOutput += `${String(message)}\n`; }, debug: (message) => { debugOutput += `${String(message)}\n`; }, getErrorOutput: () => errorOutput, getWarnOutput: () => warnOutput, getInfoOutput: () => infoOutput, getDebugOutput: () => debugOutput, }; } //# sourceMappingURL=logger.test-utils.js.map