MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / capturingLogger

Function capturingLogger

packages/server/test/host-exposure.e2e.test.ts:41–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39}
40
41function capturingLogger(): { logger: Logger; lines: string[] } {
42 const lines: string[] = [];
43 const dest = new Writable({
44 write(chunk, _enc, cb) {
45 lines.push(String(chunk));
46 cb();
47 },
48 });
49 return { logger: pino({ level: 'info' }, dest), lines };
50}
51
52beforeEach(() => {
53 prevPassword = process.env['KIMI_CODE_PASSWORD'];

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected