refactor: 💡 Create generateScreenshotPath as test helper

Create generateScreenshotPath as test helper
This commit is contained in:
Carlos Alcaide Corvo committed 2021-10-15 09:57:26 -07:00
1 parent efe6108673
commit 3600222178
1 file changed
+4
+4
View File
@@ -9,7 +9,11 @@ const path = require('path');
*/
exports.generateScreenshotPath = (screenshotTestDirectory, fileName) => {
const screenshotFormat = '.png';
<<<<<<< HEAD
const screenshotsRootPath = path.join(__dirname, 'screenshots');
=======
const screenshotsRootPath = path.join(__dirname, '/screenshots/');
>>>>>>> 8c489b81 (refactor: 💡 Create generateScreenshotPath as test helper)
const screenshotPath = path.join(
screenshotsRootPath,
screenshotTestDirectory