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

Function retry

lib/recorder.js:242–254  ·  view source on GitHub ↗

* @param {*} opts * @return {*} * @inner

(opts)

Source from the content-addressed store, hash-verified

240 * @inner
241 */
242 retry(opts) {
243 if (!promise) return
244
245 if (opts === null) {
246 opts = {}
247 }
248 if (Number.isInteger(opts)) {
249 opts = { retries: opts }
250 }
251 // Push retry options immediately so first step can see them
252 this.retries.push(opts)
253 return Promise.resolve()
254 },
255
256 /**
257 * @param {function} [customErrFn]

Callers 5

addFunction · 0.85
injectedFunction · 0.85
waitForCookieMethod · 0.85
waitForCookieMethod · 0.85
waitForCookieMethod · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected