Skip to content

Commit

Permalink
🐛 fix for invalid cypress version in cypress dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Archish27 committed Feb 20, 2023
1 parent 1b9e560 commit 1909a19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/helpers/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ exports.setCypressNpmDependency = (bsConfig) => {
if (runSettings.npm_dependencies !== undefined &&
Object.keys(runSettings.npm_dependencies).length !== 0 &&
typeof runSettings.npm_dependencies === 'object') {
if (!("cypress" in runSettings.npm_dependencies) && Constants.CYPRESS_V10_AND_ABOVE_TYPE) {
if (!("cypress" in runSettings.npm_dependencies) && runSettings.cypressTestSuiteType === Constants.CYPRESS_V10_AND_ABOVE_TYPE) {
logger.warn("Missing cypress not found in npm_dependencies");
if("cypress_version" in runSettings){
runSettings.npm_dependencies.cypress = `^${runSettings.cypress_version.toString().split(".")[0]}`;
Expand Down

0 comments on commit 1909a19

Please sign in to comment.