From 9583b20e3a21640b213c1e712aa90bec509fe542 Mon Sep 17 00:00:00 2001 From: Surya Tripathi Date: Tue, 13 Oct 2020 17:05:04 +0530 Subject: [PATCH] Fixing cypress project dir path issue --- bin/helpers/usageReporting.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/helpers/usageReporting.js b/bin/helpers/usageReporting.js index ebc703c5..1cd68e45 100644 --- a/bin/helpers/usageReporting.js +++ b/bin/helpers/usageReporting.js @@ -34,7 +34,7 @@ function local_cypress_version(bsConfig) { // 2. check version of Cypress installed globally if not present in project if (bsConfig) { - let version = get_version(path.join(bsConfig.run_settings.cypress_proj_dir, 'node_modules', '.bin', 'cypress')); + let version = get_version(path.join(bsConfig.run_settings.cypressProjectDir, 'node_modules', '.bin', 'cypress')); if (!version) { version = get_version('cypress'); } @@ -81,7 +81,7 @@ function cli_version_and_path(bsConfig) { // 2. check version of Cypress installed globally if not present in project if (bsConfig) { - let _path = path.join(bsConfig.run_settings.cypress_proj_dir, 'node_modules', 'browserstack-cypress'); + let _path = path.join(bsConfig.run_settings.cypressProjectDir, 'node_modules', 'browserstack-cypress'); let version = get_version(_path); if (!version) { version = get_version('browserstack-cypress');