Skip to content

Commit cbbe4e0

Browse files
committed
Change folder structure to make it configurable
1 parent fbd8e04 commit cbbe4e0

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

bin/helpers/archiver.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ const archiveSpecs = (runSettings, filePath) => {
2626
return new Promise(function (resolve, reject) {
2727
var output = fs.createWriteStream(filePath);
2828

29-
var cypressJSONPath = runSettings.cypress + "/cypress.json"
30-
var cypressEnvJSONPath = runSettings.cypress + "/cypress.env.json"
31-
var cypressFolderPath = runSettings.cypress + "/cypress"
29+
var cypressFolderPath = runSettings.cypress
3230
var basePath = runSettings.cypress
3331

3432
var archive = archiver('zip', {
@@ -81,8 +79,6 @@ const archiveSpecs = (runSettings, filePath) => {
8179
// });
8280

8381
// Add cypress.json
84-
archive.file(cypressJSONPath, { name: "cypress.json" });
85-
archive.file(cypressEnvJSONPath, { name: "cypress.env.json" });
8682
archive.directory(cypressFolderPath, false);
8783

8884
archive.finalize();

bin/helpers/capabilityHelper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const validate = (bsConfig) => {
6767

6868
if (!bsConfig.run_settings) reject(Constants.validationMessages.EMPTY_RUN_SETTINGS);
6969

70-
if(!bsConfig.run_settings.specs || bsConfig.run_settings.specs.length === 0) reject(Constants.validationMessages.EMPTY_SPEC_FILES);
70+
if(!bsConfig.run_settings.cypress) reject(Constants.validationMessages.EMPTY_SPEC_FILES);
7171

7272
resolve(Constants.validationMessages.VALIDATED);
7373
});

0 commit comments

Comments
 (0)