refactor: 💡 Create generateScreenshotPath as test helper
Create generateScreenshotPath as test helper
This commit is contained in:
1 parent
efe6108673
commit
3600222178
1 file changed
+4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user