import path from 'node:path' export function matchesSceneScreenshotAttachment(file, attachment) { const stem = file.replace(/\.[^.]+$/, '') const attachmentFile = path.basename(String(attachment.path || '').replaceAll('\\', '/')) return attachment.name === file || attachment.name === stem || attachmentFile === file } export function isSceneUnitProof(proof) { return ['api', 'unit', 'contract', 'integration', 'manual-visual'].includes(proof.kind) }