Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
files.forEach(f => {
const filename = f.replace(/\.[^/.]+$/, '')
cucumberJunitConvert.convert({
inputJsonFile: `./${filename}.json`,
outputXmlFile: `./${filename}.xml`
})
})
console.log(`Converted ${files.length} cucumber files`)