()
| 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)) { |