Skip to content

Commit f9e3860

Browse files
authored
Merge pull request #72 from browserstack/path-issue-fix
Fixing cypress project dir path issue
2 parents 3fe7dd1 + 9583b20 commit f9e3860

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/helpers/usageReporting.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function local_cypress_version(bsConfig) {
3434
// 2. check version of Cypress installed globally if not present in project
3535

3636
if (bsConfig) {
37-
let version = get_version(path.join(bsConfig.run_settings.cypress_proj_dir, 'node_modules', '.bin', 'cypress'));
37+
let version = get_version(path.join(bsConfig.run_settings.cypressProjectDir, 'node_modules', '.bin', 'cypress'));
3838
if (!version) {
3939
version = get_version('cypress');
4040
}
@@ -81,7 +81,7 @@ function cli_version_and_path(bsConfig) {
8181
// 2. check version of Cypress installed globally if not present in project
8282

8383
if (bsConfig) {
84-
let _path = path.join(bsConfig.run_settings.cypress_proj_dir, 'node_modules', 'browserstack-cypress');
84+
let _path = path.join(bsConfig.run_settings.cypressProjectDir, 'node_modules', 'browserstack-cypress');
8585
let version = get_version(_path);
8686
if (!version) {
8787
version = get_version('browserstack-cypress');

0 commit comments

Comments
 (0)