Skip to content

Commit 6119063

Browse files
committed
modification in path for cypress basepath
1 parent 47a48f3 commit 6119063

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bin/helpers/archiver.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ const archiveSpecs = (runSettings, filePath) => {
3737
return new Promise(function (resolve, reject) {
3838
var output = fs.createWriteStream(filePath);
3939

40-
var basePath = runSettings.base_path
40+
var cypressJSONPath = runSettings.cypress + "/cypress.json"
41+
var basePath = runSettings.cypress + "/cypress/"
4142

4243
var archive = archiver('zip', {
4344
zlib: { level: 9 } // Sets the compression level.
@@ -88,6 +89,9 @@ const archiveSpecs = (runSettings, filePath) => {
8889
archive.file(basePath + file, { name: file });
8990
});
9091

92+
// Add cypress.json
93+
archive.file(cypressJSONPath, { name: "cypress.json" });
94+
9195
archive.finalize();
9296
});
9397
}

0 commit comments

Comments
 (0)