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

Method done

lib/codecept.js:313–323  ·  view source on GitHub ↗
(failures)

Source from the content-addressed store, hash-verified

311 }
312
313 const done = async (failures) => {
314 event.emit(event.all.result, container.result())
315 event.emit(event.all.after, this)
316 // Wait for any recorder tasks added by event.all.after handlers
317 await recorder.promise()
318 // Set exit code based on test failures
319 if (failures) {
320 process.exitCode = 1
321 }
322 resolve()
323 }
324
325 try {
326 event.emit(event.all.before, this)

Callers

nothing calls this directly

Calls 2

resolveFunction · 0.85
resultMethod · 0.45

Tested by

no test coverage detected