From 7a6ef1f7beda0132ad51e3224293df35f8edae78 Mon Sep 17 00:00:00 2001 From: Karan Shah Date: Mon, 31 Aug 2020 15:27:44 +0530 Subject: [PATCH] Allowing .pdf, .jpg, .jpeg, .png, .zip files for cypress. --- bin/helpers/archiver.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/helpers/archiver.js b/bin/helpers/archiver.js index 6197ed5a..6fbf2aac 100644 --- a/bin/helpers/archiver.js +++ b/bin/helpers/archiver.js @@ -36,9 +36,9 @@ const archiveSpecs = (runSettings, filePath) => { archive.pipe(output); - let allowedFileTypes = [ 'js', 'json', 'txt', 'ts', 'feature', 'features' ]; + let allowedFileTypes = [ 'js', 'json', 'txt', 'ts', 'feature', 'features', 'pdf', 'jpg', 'jpeg', 'png', 'zip' ]; allowedFileTypes.forEach(fileType => { - archive.glob(`**/*.${fileType}`, { cwd: cypressFolderPath, matchBase: true, ignore: ['node_modules/**', 'package-lock.json', 'package.json', 'browserstack-package.json'] }); + archive.glob(`**/*.${fileType}`, { cwd: cypressFolderPath, matchBase: true, ignore: ['node_modules/**', 'package-lock.json', 'package.json', 'browserstack-package.json', 'tests.zip'] }); }); let packageJSON = {};