Skip to content

Commit

Permalink
Fixing cypress project dir path issue
Browse files Browse the repository at this point in the history
  • Loading branch information
suryart committed Oct 13, 2020
1 parent 3fe7dd1 commit 9583b20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/helpers/usageReporting.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit 9583b20

Please sign in to comment.