项目文件夹

文件
Alex Rudenko feee900a4c chore: create a console formatter class (#802)
This cleans up the McpResponse and helps with returning the structured
content.
2026-01-21 10:04:20 +00:00

47 行
1.3 KiB
Plaintext

exports[`ConsoleFormatter > toString > formats a console.log message 1`] = `
msgid=1 [log] Hello, world! (0 args)
`;
exports[`ConsoleFormatter > toString > formats a console.log message with multiple arguments 1`] = `
msgid=3 [log] Processing file: (2 args)
`;
exports[`ConsoleFormatter > toString > formats a console.log message with one argument 1`] = `
msgid=2 [log] Processing file: (1 args)
`;
exports[`ConsoleFormatter > toStringDetailed > formats a console message with a stack trace 1`] = `
ID: 5
Message: log> Hello stack trace!
### Stack trace
at foo (foo.ts:10:2)
at bar (foo.ts:20:2)
--- setTimeout -------------------------
at schedule (util.ts:5:2)
`;
exports[`ConsoleFormatter > toStringDetailed > formats a console.error message 1`] = `
ID: 4
Message: error> Something went wrong
`;
exports[`ConsoleFormatter > toStringDetailed > formats a console.log message 1`] = `
ID: 1
Message: log> Hello, world!
`;
exports[`ConsoleFormatter > toStringDetailed > formats a console.log message with multiple arguments 1`] = `
ID: 3
Message: log> Processing file:
### Arguments
Arg #0: file.txt
Arg #1: another file
`;
exports[`ConsoleFormatter > toStringDetailed > formats a console.log message with one argument 1`] = `
ID: 2
Message: log> Processing file:
### Arguments
Arg #0: file.txt
`;