From 1909a19f238274fcffdd328c29d59d4e27e7cb38 Mon Sep 17 00:00:00 2001 From: Archish Date: Mon, 20 Feb 2023 11:16:31 +0530 Subject: [PATCH] :bug: fix for invalid cypress version in cypress dependency --- bin/helpers/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/helpers/utils.js b/bin/helpers/utils.js index b91260f4..eede9d75 100644 --- a/bin/helpers/utils.js +++ b/bin/helpers/utils.js @@ -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]}`;