wdio-timeline-reporter
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -373,3 +373,3 @@ const events = require('events'); | ||
const fileName = 'timeline-report.html'; | ||
let fileName = 'timeline-report.html'; | ||
@@ -380,2 +380,12 @@ if (this.config.reporterOptions | ||
const fileNameSet = !!this.config.reporterOptions.timelineReporter.fileName; | ||
if (fileNameSet) { | ||
if (!fileName.endsWith('html')) { | ||
console.warn('Report file name should end with html') | ||
} else { | ||
fileName = this.config.reporterOptions.timelineReporter.fileName; | ||
} | ||
} | ||
if (fs.pathExistsSync(this.config.reporterOptions.timelineReporter.outputDir)) { | ||
@@ -382,0 +392,0 @@ fs.outputFileSync(`${this.config.reporterOptions.timelineReporter.outputDir}/${fileName}`, finalHtml); |
{ | ||
"name": "wdio-timeline-reporter", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/timeline-reporter.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17427
352