MCPcopy Index your code
hub / github.com/coderoad/coderoad-vscode / formatFailOutput

Function formatFailOutput

src/services/testRunner/formatOutput.ts:6–15  ·  view source on GitHub ↗
(tap: ParserOutput)

Source from the content-addressed store, hash-verified

4// export const formatSuccessOutput = (tap: ParserOutput): string => {}
5
6export const formatFailOutput = (tap: ParserOutput): string => {
7 let output = `FAILED TEST LOG\n`
8 tap.failed.forEach((fail: Fail) => {
9 const details = fail.details ? `\n${fail.details}\n` : ''
10 const logs = fail.logs ? `\n${fail.logs.join('\n')}\n` : ''
11 const result = `${logs} ✘ ${fail.message}\n${details}`
12 output += result
13 })
14 return output
15}

Callers 1

createTestRunnerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected