MCPcopy
hub / github.com/codeceptjs/CodeceptJS / retryStep

Function retryStep

lib/step/retry.js:4–9  ·  view source on GitHub ↗
(opts)

Source from the content-addressed store, hash-verified

2import event from '../event.js'
3
4function retryStep(opts) {
5 if (opts === undefined) opts = 1
6 recorder.retry(opts)
7 // remove retry once the step passed
8 recorder.add(() => event.dispatcher.once(event.step.finished, () => recorder.retries.pop()))
9}
10
11export default retryStep

Callers 1

recordStepFunction · 0.85

Calls 3

popMethod · 0.80
retryMethod · 0.65
addMethod · 0.45

Tested by

no test coverage detected