@@ -91,6 +91,7 @@ describe("runs", () => {
9191 setCypressConfigFilenameStub = sandbox . stub ( ) ;
9292 setUserSpecsStub = sandbox . stub ( ) ;
9393 setTestEnvsStub = sandbox . stub ( ) ;
94+ setSystemEnvsStub = sandbox . stub ( ) ;
9495 getConfigPathStub = sandbox . stub ( ) ;
9596 setupLocalTestingStub = sandbox . stub ( ) ;
9697 setUsageReportingFlagStub = sandbox . stub ( ) . returns ( undefined ) ;
@@ -141,7 +142,8 @@ describe("runs", () => {
141142 setupLocalTesting : setupLocalTestingStub ,
142143 isJSONInvalid : isJSONInvalidStub ,
143144 setLocalMode : setLocalModeStub ,
144- setLocalConfigFile : setLocalConfigFileStub
145+ setLocalConfigFile : setLocalConfigFileStub ,
146+ setSystemEnvs : setSystemEnvsStub
145147 } ,
146148 '../helpers/capabilityHelper' : {
147149 validate : capabilityValidatorStub
@@ -168,6 +170,7 @@ describe("runs", () => {
168170 sinon . assert . calledOnce ( setCypressConfigFilenameStub ) ;
169171 sinon . assert . calledOnce ( setUserSpecsStub ) ;
170172 sinon . assert . calledOnce ( setTestEnvsStub ) ;
173+ sinon . assert . calledOnce ( setSystemEnvsStub ) ;
171174 sinon . assert . calledOnce ( setLocalStub ) ;
172175 sinon . assert . calledOnce ( setLocalModeStub ) ;
173176 sinon . assert . calledOnce ( setLocalConfigFileStub ) ;
@@ -203,6 +206,7 @@ describe("runs", () => {
203206 setCypressConfigFilenameStub = sandbox . stub ( ) ;
204207 setUserSpecsStub = sandbox . stub ( ) ;
205208 setTestEnvsStub = sandbox . stub ( ) ;
209+ setSystemEnvsStub = sandbox . stub ( ) ;
206210 validateBstackJsonStub = sandbox . stub ( ) ;
207211 setUsageReportingFlagStub = sandbox . stub ( ) . returns ( undefined ) ;
208212 checkUploadedStub = sandbox . stub ( ) ;
@@ -257,7 +261,8 @@ describe("runs", () => {
257261 deleteResults : deleteResultsStub ,
258262 setDefaults : setDefaultsStub ,
259263 getNumberOfSpecFiles : getNumberOfSpecFilesStub ,
260- setLocalConfigFile : setLocalConfigFileStub
264+ setLocalConfigFile : setLocalConfigFileStub ,
265+ setSystemEnvs : setSystemEnvsStub
261266 } ,
262267 '../helpers/capabilityHelper' : {
263268 validate : capabilityValidatorStub ,
@@ -306,6 +311,7 @@ describe("runs", () => {
306311 sinon . assert . calledOnce ( deleteZipStub ) ;
307312 sinon . assert . calledOnce ( deleteResultsStub ) ;
308313 sinon . assert . calledOnce ( setDefaultsStub ) ;
314+ sinon . assert . calledOnce ( setSystemEnvsStub ) ;
309315 sinon . assert . calledOnceWithExactly (
310316 sendUsageReportStub ,
311317 bsConfig ,
@@ -332,6 +338,7 @@ describe("runs", () => {
332338 setCypressConfigFilenameStub = sandbox . stub ( ) ;
333339 setUserSpecsStub = sandbox . stub ( ) ;
334340 setTestEnvsStub = sandbox . stub ( ) ;
341+ setSystemEnvsStub = sandbox . stub ( ) ;
335342 getConfigPathStub = sandbox . stub ( ) ;
336343 setUsageReportingFlagStub = sandbox . stub ( ) . returns ( undefined ) ;
337344 checkUploadedStub = sandbox . stub ( ) ;
@@ -376,6 +383,7 @@ describe("runs", () => {
376383 setCypressConfigFilename : setCypressConfigFilenameStub ,
377384 setUserSpecs : setUserSpecsStub ,
378385 setTestEnvs : setTestEnvsStub ,
386+ setSystemEnvs : setSystemEnvsStub ,
379387 setUsageReportingFlag : setUsageReportingFlagStub ,
380388 getConfigPath : getConfigPathStub ,
381389 setLocal : setLocalStub ,
@@ -436,6 +444,7 @@ describe("runs", () => {
436444 sinon . assert . calledOnce ( zipUploadStub ) ;
437445 sinon . assert . calledOnce ( deleteResultsStub ) ;
438446 sinon . assert . calledOnce ( setDefaultsStub ) ;
447+ sinon . assert . calledOnce ( setSystemEnvsStub ) ;
439448 sinon . assert . calledOnceWithExactly (
440449 sendUsageReportStub ,
441450 bsConfig ,
@@ -465,6 +474,7 @@ describe("runs", () => {
465474 setCypressConfigFilenameStub = sandbox . stub ( ) ;
466475 setUserSpecsStub = sandbox . stub ( ) ;
467476 setTestEnvsStub = sandbox . stub ( ) ;
477+ setSystemEnvsStub = sandbox . stub ( ) ;
468478 getConfigPathStub = sandbox . stub ( ) ;
469479 setUsageReportingFlagStub = sandbox . stub ( ) . returns ( undefined ) ;
470480 checkUploadedStub = sandbox . stub ( ) ;
@@ -511,6 +521,7 @@ describe("runs", () => {
511521 setCypressConfigFilename : setCypressConfigFilenameStub ,
512522 setUserSpecs : setUserSpecsStub ,
513523 setTestEnvs : setTestEnvsStub ,
524+ setSystemEnvs : setSystemEnvsStub ,
514525 setUsageReportingFlag : setUsageReportingFlagStub ,
515526 getConfigPath : getConfigPathStub ,
516527 setLocal : setLocalStub ,
@@ -583,6 +594,7 @@ describe("runs", () => {
583594 sinon . assert . calledOnce ( sendUsageReportStub ) ;
584595 sinon . assert . calledOnce ( deleteResultsStub ) ;
585596 sinon . assert . calledOnce ( setDefaultsStub ) ;
597+ sinon . assert . calledOnce ( setSystemEnvsStub ) ;
586598
587599 sinon . assert . calledOnceWithExactly (
588600 sendUsageReportStub ,
@@ -611,6 +623,7 @@ describe("runs", () => {
611623 setCypressConfigFilenameStub = sandbox . stub ( ) ;
612624 setUserSpecsStub = sandbox . stub ( ) ;
613625 setTestEnvsStub = sandbox . stub ( ) ;
626+ setSystemEnvsStub = sandbox . stub ( ) ;
614627 getConfigPathStub = sandbox . stub ( ) ;
615628 setUsageReportingFlagStub = sandbox . stub ( ) . returns ( undefined ) ;
616629 checkUploadedStub = sandbox . stub ( ) ;
@@ -663,6 +676,7 @@ describe("runs", () => {
663676 setCypressConfigFilename : setCypressConfigFilenameStub ,
664677 setUserSpecs : setUserSpecsStub ,
665678 setTestEnvs : setTestEnvsStub ,
679+ setSystemEnvs : setSystemEnvsStub ,
666680 setUsageReportingFlag : setUsageReportingFlagStub ,
667681 setParallels : setParallelsStub ,
668682 warnSpecLimit : warnSpecLimitStub ,
@@ -745,6 +759,7 @@ describe("runs", () => {
745759 sinon . assert . calledOnce ( exportResultsStub ) ;
746760 sinon . assert . calledOnce ( deleteResultsStub ) ;
747761 sinon . assert . calledOnce ( setDefaultsStub ) ;
762+ sinon . assert . calledOnce ( setSystemEnvsStub ) ;
748763 sinon . assert . match (
749764 sendUsageReportStub . getCall ( 0 ) . args ,
750765 [
0 commit comments