File tree 1 file changed +3
-3
lines changed
bin/testObservability/helper
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -804,6 +804,7 @@ exports.resolveModule = (module) => {
804
804
} ;
805
805
806
806
const getReRunSpecs = ( rawArgs ) => {
807
+ let finalArgs = rawArgs ;
807
808
if ( this . isTestObservabilitySession ( ) && this . shouldReRunObservabilityTests ( ) ) {
808
809
let startIdx = - 1 , numEle = 0 ;
809
810
for ( let idx = 0 ; idx < rawArgs . length ; idx ++ ) {
@@ -816,10 +817,9 @@ const getReRunSpecs = (rawArgs) => {
816
817
}
817
818
}
818
819
if ( startIdx != - 1 ) rawArgs . splice ( startIdx , numEle + 1 ) ;
819
- return [ ...rawArgs , '--spec' , process . env . BROWSERSTACK_RERUN_TESTS ] ;
820
- } else {
821
- return rawArgs ;
820
+ finalArgs = [ ...rawArgs , '--spec' , process . env . BROWSERSTACK_RERUN_TESTS ] ;
822
821
}
822
+ return finalArgs . filter ( item => item !== '--disable-test-observability' && item !== '--disable-browserstack-automation' ) ;
823
823
}
824
824
825
825
const getLocalSessionReporter = ( ) => {
You can’t perform that action at this time.
0 commit comments