Skip to content

Commit 1909a19

Browse files
committed
🐛 fix for invalid cypress version in cypress dependency
1 parent 1b9e560 commit 1909a19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/helpers/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ exports.setCypressNpmDependency = (bsConfig) => {
333333
if (runSettings.npm_dependencies !== undefined &&
334334
Object.keys(runSettings.npm_dependencies).length !== 0 &&
335335
typeof runSettings.npm_dependencies === 'object') {
336-
if (!("cypress" in runSettings.npm_dependencies) && Constants.CYPRESS_V10_AND_ABOVE_TYPE) {
336+
if (!("cypress" in runSettings.npm_dependencies) && runSettings.cypressTestSuiteType === Constants.CYPRESS_V10_AND_ABOVE_TYPE) {
337337
logger.warn("Missing cypress not found in npm_dependencies");
338338
if("cypress_version" in runSettings){
339339
runSettings.npm_dependencies.cypress = `^${runSettings.cypress_version.toString().split(".")[0]}`;

0 commit comments

Comments
 (0)