MCPcopy Create free account
hub / github.com/garris/BackstopJS / next

Function next

core/util/runPuppet.js:359–375  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

357 let job = null;
358 const errors = [];
359 const next = function () {
360 if (captureJobs.length === 0) {
361 if (errors.length === 0) {
362 resolve();
363 } else {
364 reject(errors);
365 }
366 return;
367 }
368 job = captureJobs.shift();
369 job().catch(function (e) {
370 logger.log('reset', e);
371 errors.push(e);
372 }).then(function () {
373 next();
374 });
375 };
376 next();
377 }).then(async () => {
378 logger.log('green', 'x Close Browser');

Callers 2

delegateSelectorsFunction · 0.70
index.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected