{"version":3,"sources":["jsdelivr-header.js","/npm/cypress-rerun-failed-specs-sid-g@1.0.22/src/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,MAAM,wBAAE,yBAA4B,QAAQ,qBACtC,WAAE,YAAe,QAAQ,aACzB,YAAE,aAAgB,QAAQ,mBAC1B,aAAE,cAAiB,QAAQ,oBAC3B,mBAAE,oBAAuB,QAAQ,mBAEvC,eAAe,YAAY,EAAU,CAAC,GACpC,IAAI,EAAc,wBAAwB,GAG1C,GAFA,EAAc,YAAY,GAErB,EAAY,OAAjB,CAWA,GALD,mBAAmB,GAElB,QAAQ,IAAI,mBACZ,EAAY,SAAS,GAAM,QAAQ,IAAI,MAAM,OAEzC,EAAQ,OAGV,OAFA,QAAQ,IAAI,uCACZ,aAAa,EAAa,GAAS,SAI/B,WAAW,EAAa,GAC9B,aAAa,EAAa,EAf1B,MAFE,QAAQ,IAAI,0BAkBhB,CAEA,OAAO,QAAU,CAAE","file":"/npm/cypress-rerun-failed-specs-sid-g@1.0.22/src/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/cypress-rerun-failed-specs-sid-g@1.0.22/src/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","const { detectAndGetFailedSpecs } = require(\"./detectors/auto\");\r\nconst { runCypress } = require(\"./runner\");\r\nconst { dedupeSpecs } = require(\"./utils/dedupe\");\r\nconst { printSummary } = require(\"./utils/summary\");\r\nconst { cleanupBeforeRerun } = require(\"./utils/cleanup\");\r\n\r\nasync function rerunFailed(options = {}) {\r\n  let failedSpecs = detectAndGetFailedSpecs(options);\r\n  failedSpecs = dedupeSpecs(failedSpecs);\r\n\r\n  if (!failedSpecs.length) {\r\n    console.log(\"✅ No failed specs found\");\r\n    return;\r\n  }\r\n \r\n  // 🔥 MUST happen BEFORE rerun\r\n cleanupBeforeRerun(options);\r\n\r\n  console.log(\"❌ Failed specs:\");\r\n  failedSpecs.forEach((s) => console.log(` - ${s}`));\r\n\r\n  if (options.dryRun) {\r\n    console.log(\"\\n🧪 Dry run enabled. Exiting.\");\r\n    printSummary(failedSpecs, options, true);\r\n    return;\r\n  }\r\n\r\n  await runCypress(failedSpecs, options);\r\n  printSummary(failedSpecs, options);\r\n}\r\n\r\nmodule.exports = { rerunFailed };\r\n"]}