Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 

12 rader
461 B

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