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

Method say

lib/actor.js:21–29  ·  view source on GitHub ↗

* Print the comment on log. Also, adding a step in the `Test.steps` object * @param {string} msg * @param {string} color * @inner * * ⚠️ returns a promise which is synchronized internally by recorder

(msg, color = 'cyan')

Source from the content-addressed store, hash-verified

19 * ⚠️ returns a promise which is synchronized internally by recorder
20 */
21 async say(msg, color = 'cyan') {
22 const step = new Step('say', 'say')
23 step.status = 'passed'
24 return recordStep(step, [msg]).then(() => {
25 // this is backward compatibility as this event may be used somewhere
26 event.emit(event.step.comment, msg)
27 output.say(msg, `${color}`)
28 })
29 }
30}
31
32/**

Callers 1

github_test.jsFile · 0.45

Calls 1

recordStepFunction · 0.85

Tested by

no test coverage detected