Skip to content

Commit 603297a

Browse files
committed
fix: test o11y reporter path
1 parent 5092691 commit 603297a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

bin/testObservability/helper/constants.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
const path = require('path');
2+
13
exports.consoleHolder = Object.assign({},console);
24
exports.BATCH_SIZE = 1000;
35
exports.BATCH_INTERVAL = 2000;
@@ -27,4 +29,4 @@ exports.OBSERVABILITY_ENV_VARS = [
2729
"OBS_CRASH_REPORTING_CYPRESS_CONFIG_PATH"
2830
];
2931

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

bin/testObservability/helper/helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ const getReRunSpecs = (rawArgs) => {
825825

826826
const getLocalSessionReporter = () => {
827827
if(this.isTestObservabilitySession() && process.env.BS_TESTOPS_JWT) {
828-
return ['--reporter', path.join(__dirname, '..', 'reporter')];
828+
return ['--reporter', TEST_OBSERVABILITY_REPORTER];
829829
} else {
830830
return [];
831831
}

0 commit comments

Comments
 (0)