| 44 | const captureSnapshot = JSON.stringify(capturedScenarios, null, 2); |
| 45 | |
| 46 | const matchesScenario = entry => |
| 47 | entry.tags && entry.tags.includes('@scenarioHook') && entry.tags.includes('@hookCapture'); |
| 48 | |
| 49 | const bddBefore = capturedScenarios.find( |
| 50 | entry => entry.phase === 'Before-hook' && matchesScenario(entry), |