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

Function finalize

lib/session.js:90–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88 })
89
90 const finalize = () => {
91 recorder.add('Finalize session', async () => {
92 output.stepShift = 0
93 event.dispatcher.removeListener(event.step.after, addContextToStep)
94 await session.restoreVars()
95 recorder.session.restore(`session:${sessionName}`)
96 })
97 }
98
99 // Indicate when executing this function that we are in a session
100 if (isAsyncFunction(fn)) {

Callers 1

sessionFunction · 0.70

Calls 1

addMethod · 0.45

Tested by

no test coverage detected