MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / failed

Function failed

lib/output.js:202–208  ·  view source on GitHub ↗

* @param {Mocha.Test} test

(test)

Source from the content-addressed store, hash-verified

200 * @param {Mocha.Test} test
201 */
202 failed(test) {
203 // Only show feature name in workers mode (when outputProcess is set)
204 const featureName = outputProcess && test.parent?.title ? `${colors.yellow(test.parent.title)} › ` : ''
205 const scenarioName = colors.bold(test.title)
206 const executionTime = colors.yellow(`in ${test.duration}ms`)
207 print(` ${colors.red.bold(figures.cross)} ${featureName}${scenarioName} ${executionTime}`)
208 },
209 /**
210 * @param {Mocha.Test} test
211 */

Callers

nothing calls this directly

Calls 2

printFunction · 0.70
toCodeMethod · 0.45

Tested by

no test coverage detected