cypress-mochawesome-reporter
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -16,6 +16,14 @@ const path = require('path'); | ||
async function copyScreenShotsDir({ screenshotsDir, output }) { | ||
const isExists = await fse.exists(screenshotsDir); | ||
if (isExists) { | ||
await fse.copy(screenshotsDir, path.join(output, 'screenshots'), { recursive: true }); | ||
} | ||
} | ||
async function generateReport({ jsonDir, screenshotsDir, output }) { | ||
const [htmlPath] = await Promise.all([ | ||
mergeAndCreate({ jsonDir, output }), | ||
fse.copy(screenshotsDir, path.join(output, 'screenshots')), | ||
copyScreenShotsDir({ screenshotsDir, output }), | ||
]); | ||
@@ -22,0 +30,0 @@ |
{ | ||
"name": "cypress-mochawesome-reporter", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Zero config Mochawesome reporter for Cypress with screenshots", | ||
@@ -5,0 +5,0 @@ "author": "Liron Er", |
# cypress-mochawesome-reporter | ||
[![npm](https://img.shields.io/npm/v/cypress-mochawesome-reporter)](http://www.npmjs.com/package/cypress-mochawesome-reporter) | ||
Zero config Mochawesome reporter for Cypress with screenshots | ||
@@ -4,0 +6,0 @@ |
6264
95
60