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 @@ -815,6 +815,7 @@ exports.resolveModule = (module) => {
815
815
} ;
816
816
817
817
const getReRunSpecs = ( rawArgs ) => {
818
+ let finalArgs = rawArgs ;
818
819
if ( this . isTestObservabilitySession ( ) && this . shouldReRunObservabilityTests ( ) ) {
819
820
let startIdx = - 1 , numEle = 0 ;
820
821
for ( let idx = 0 ; idx < rawArgs . length ; idx ++ ) {
@@ -827,10 +828,9 @@ const getReRunSpecs = (rawArgs) => {
827
828
}
828
829
}
829
830
if ( startIdx != - 1 ) rawArgs . splice ( startIdx , numEle + 1 ) ;
830
- return [ ...rawArgs , '--spec' , process . env . BROWSERSTACK_RERUN_TESTS ] ;
831
- } else {
832
- return rawArgs ;
831
+ finalArgs = [ ...rawArgs , '--spec' , process . env . BROWSERSTACK_RERUN_TESTS ] ;
833
832
}
833
+ return finalArgs . filter ( item => item !== '--disable-test-observability' && item !== '--disable-browserstack-automation' ) ;
834
834
}
835
835
836
836
const getLocalSessionReporter = ( ) => {
You can’t perform that action at this time.
0 commit comments