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

Function onTestFinished

lib/pause.js:33–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31}
32
33function onTestFinished() {
34 if (typeof finish === 'function') finish()
35 if (pauseSessionOpen) {
36 recorder.session.restore('pause')
37 pauseSessionOpen = false
38 }
39 if (rl) rl.close()
40 if (!externalHandler) history.save()
41 event.dispatcher.removeListener(event.step.after, onStepAfter)
42 event.dispatcher.removeListener(event.test.finished, onTestFinished)
43}
44
45function registerPauseListeners() {
46 event.dispatcher.removeListener(event.step.after, onStepAfter)

Callers

nothing calls this directly

Calls 2

finishFunction · 0.50
saveMethod · 0.45

Tested by

no test coverage detected