Skip to content

Commit

Permalink
Merge pull request #571 from browserstack/AFD-2214-missing-cypress-fix
Browse files Browse the repository at this point in the history
fix missing cypress issue
  • Loading branch information
Archish Thakkar authored May 12, 2023
2 parents 56dc4ed + f6facdb commit 0982ffa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions bin/commands/runs.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ module.exports = function run(args, rawArgs) {
// set the no-wrap
utils.setNoWrap(bsConfig, args);

// add cypress dependency if missing
utils.setCypressNpmDependency(bsConfig);

const { packagesInstalled } = await packageInstaller.packageSetupAndInstaller(bsConfig, config.packageDirName, {markBlockStart, markBlockEnd});

// set build tag caps
Expand Down
2 changes: 1 addition & 1 deletion bin/helpers/checkUploaded.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const checkUploadedMd5 = (bsConfig, args, instrumentBlocks) => {
zipUrlPresent: false,
packageUrlPresent: false,
};
utils.setCypressNpmDependency(bsConfig);

if (args["force-upload"]) {
logger.debug("force-upload set to true. Uploading tests and npm packages.");
return resolve(obj);
Expand Down

0 comments on commit 0982ffa

Please sign in to comment.