Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wdio-timeline-reporter

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wdio-timeline-reporter - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

15

lib/timeline-reporter.js

@@ -299,4 +299,15 @@ const events = require('events');

const imagesHtml = screenshots.reduce((accumulator, currentValue) => {
var data = embedImage ? base64Img.base64Sync(currentValue) : currentValue;
return `${accumulator}<img class="screenshot-img" src="${data}" />`
// errror screenshots dont come with path
if (fs.existsSync(currentValue)) {
const data = embedImage ? base64Img.base64Sync(currentValue) : currentValue;
return `${accumulator}<img class="screenshot-img" src="${data}" />`
} else if (!!this.config.screenshotPath) {
const imagePath = path.join(process.cwd(), this.config.screenshotPath, currentValue);
if (fs.existsSync(imagePath)) {
const data = embedImage ? base64Img.base64Sync(imagePath) : imagePath;
return `${accumulator}<img class="screenshot-img" src="${data}" />`
}
}
console.warn(`TIMELINE REPORTER: Could not attach image: ${currentValue}`);
return accumulator;
}, '');

@@ -303,0 +314,0 @@

2

package.json
{
"name": "wdio-timeline-reporter",
"version": "0.1.0",
"version": "0.1.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "lib/timeline-reporter.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc