Skip to content

Commit 914c5fc

Browse files
committed
fix: browserstackautomation: true
1 parent 59e6591 commit 914c5fc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

bin/testObservability/helper/constants.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,6 @@ exports.OBSERVABILITY_ENV_VARS = [
2929
"OBS_CRASH_REPORTING_CYPRESS_CONFIG_PATH"
3030
];
3131

32-
exports.TEST_OBSERVABILITY_REPORTER = path.join(__dirname, '..', 'reporter');
32+
exports.TEST_OBSERVABILITY_REPORTER = 'browserstack-cypress-cli/bin/testObservability/reporter';
33+
34+
exports.TEST_OBSERVABILITY_REPORTER_LOCAL = path.join(__dirname, '..', 'reporter');

bin/testObservability/helper/helper.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const GLOBAL_MODULE_PATH = execSync('npm root -g').toString().trim();
2525
const { name, version } = require('../../../package.json');
2626

2727
const { CYPRESS_V10_AND_ABOVE_CONFIG_FILE_EXTENSIONS } = require('../../helpers/constants');
28-
const { consoleHolder, API_URL, TEST_OBSERVABILITY_REPORTER } = require('./constants');
28+
const { consoleHolder, API_URL, TEST_OBSERVABILITY_REPORTER, TEST_OBSERVABILITY_REPORTER_LOCAL } = require('./constants');
2929

3030
const ALLOWED_MODULES = [
3131
'cypress/package.json',
@@ -824,7 +824,7 @@ const getReRunSpecs = (rawArgs) => {
824824

825825
const getLocalSessionReporter = () => {
826826
if(this.isTestObservabilitySession() && process.env.BS_TESTOPS_JWT) {
827-
return ['--reporter', TEST_OBSERVABILITY_REPORTER];
827+
return ['--reporter', TEST_OBSERVABILITY_REPORTER_LOCAL];
828828
} else {
829829
return [];
830830
}

0 commit comments

Comments
 (0)