File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
bin/testObservability/helper Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -804,6 +804,7 @@ exports.resolveModule = (module) => {
804804} ;
805805
806806const getReRunSpecs = ( rawArgs ) => {
807+ let finalArgs = rawArgs ;
807808 if ( this . isTestObservabilitySession ( ) && this . shouldReRunObservabilityTests ( ) ) {
808809 let startIdx = - 1 , numEle = 0 ;
809810 for ( let idx = 0 ; idx < rawArgs . length ; idx ++ ) {
@@ -816,10 +817,9 @@ const getReRunSpecs = (rawArgs) => {
816817 }
817818 }
818819 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 ] ;
822821 }
822+ return finalArgs . filter ( item => item !== '--disable-test-observability' && item !== '--disable-browserstack-automation' ) ;
823823}
824824
825825const getLocalSessionReporter = ( ) => {
You can’t perform that action at this time.
0 commit comments