@@ -91,6 +91,7 @@ describe("runs", () => {
91
91
setCypressConfigFilenameStub = sandbox . stub ( ) ;
92
92
setUserSpecsStub = sandbox . stub ( ) ;
93
93
setTestEnvsStub = sandbox . stub ( ) ;
94
+ setSystemEnvsStub = sandbox . stub ( ) ;
94
95
getConfigPathStub = sandbox . stub ( ) ;
95
96
setupLocalTestingStub = sandbox . stub ( ) ;
96
97
setUsageReportingFlagStub = sandbox . stub ( ) . returns ( undefined ) ;
@@ -141,7 +142,8 @@ describe("runs", () => {
141
142
setupLocalTesting : setupLocalTestingStub ,
142
143
isJSONInvalid : isJSONInvalidStub ,
143
144
setLocalMode : setLocalModeStub ,
144
- setLocalConfigFile : setLocalConfigFileStub
145
+ setLocalConfigFile : setLocalConfigFileStub ,
146
+ setSystemEnvs : setSystemEnvsStub
145
147
} ,
146
148
'../helpers/capabilityHelper' : {
147
149
validate : capabilityValidatorStub
@@ -168,6 +170,7 @@ describe("runs", () => {
168
170
sinon . assert . calledOnce ( setCypressConfigFilenameStub ) ;
169
171
sinon . assert . calledOnce ( setUserSpecsStub ) ;
170
172
sinon . assert . calledOnce ( setTestEnvsStub ) ;
173
+ sinon . assert . calledOnce ( setSystemEnvsStub ) ;
171
174
sinon . assert . calledOnce ( setLocalStub ) ;
172
175
sinon . assert . calledOnce ( setLocalModeStub ) ;
173
176
sinon . assert . calledOnce ( setLocalConfigFileStub ) ;
@@ -203,6 +206,7 @@ describe("runs", () => {
203
206
setCypressConfigFilenameStub = sandbox . stub ( ) ;
204
207
setUserSpecsStub = sandbox . stub ( ) ;
205
208
setTestEnvsStub = sandbox . stub ( ) ;
209
+ setSystemEnvsStub = sandbox . stub ( ) ;
206
210
validateBstackJsonStub = sandbox . stub ( ) ;
207
211
setUsageReportingFlagStub = sandbox . stub ( ) . returns ( undefined ) ;
208
212
checkUploadedStub = sandbox . stub ( ) ;
@@ -257,7 +261,8 @@ describe("runs", () => {
257
261
deleteResults : deleteResultsStub ,
258
262
setDefaults : setDefaultsStub ,
259
263
getNumberOfSpecFiles : getNumberOfSpecFilesStub ,
260
- setLocalConfigFile : setLocalConfigFileStub
264
+ setLocalConfigFile : setLocalConfigFileStub ,
265
+ setSystemEnvs : setSystemEnvsStub
261
266
} ,
262
267
'../helpers/capabilityHelper' : {
263
268
validate : capabilityValidatorStub ,
@@ -306,6 +311,7 @@ describe("runs", () => {
306
311
sinon . assert . calledOnce ( deleteZipStub ) ;
307
312
sinon . assert . calledOnce ( deleteResultsStub ) ;
308
313
sinon . assert . calledOnce ( setDefaultsStub ) ;
314
+ sinon . assert . calledOnce ( setSystemEnvsStub ) ;
309
315
sinon . assert . calledOnceWithExactly (
310
316
sendUsageReportStub ,
311
317
bsConfig ,
@@ -332,6 +338,7 @@ describe("runs", () => {
332
338
setCypressConfigFilenameStub = sandbox . stub ( ) ;
333
339
setUserSpecsStub = sandbox . stub ( ) ;
334
340
setTestEnvsStub = sandbox . stub ( ) ;
341
+ setSystemEnvsStub = sandbox . stub ( ) ;
335
342
getConfigPathStub = sandbox . stub ( ) ;
336
343
setUsageReportingFlagStub = sandbox . stub ( ) . returns ( undefined ) ;
337
344
checkUploadedStub = sandbox . stub ( ) ;
@@ -376,6 +383,7 @@ describe("runs", () => {
376
383
setCypressConfigFilename : setCypressConfigFilenameStub ,
377
384
setUserSpecs : setUserSpecsStub ,
378
385
setTestEnvs : setTestEnvsStub ,
386
+ setSystemEnvs : setSystemEnvsStub ,
379
387
setUsageReportingFlag : setUsageReportingFlagStub ,
380
388
getConfigPath : getConfigPathStub ,
381
389
setLocal : setLocalStub ,
@@ -436,6 +444,7 @@ describe("runs", () => {
436
444
sinon . assert . calledOnce ( zipUploadStub ) ;
437
445
sinon . assert . calledOnce ( deleteResultsStub ) ;
438
446
sinon . assert . calledOnce ( setDefaultsStub ) ;
447
+ sinon . assert . calledOnce ( setSystemEnvsStub ) ;
439
448
sinon . assert . calledOnceWithExactly (
440
449
sendUsageReportStub ,
441
450
bsConfig ,
@@ -465,6 +474,7 @@ describe("runs", () => {
465
474
setCypressConfigFilenameStub = sandbox . stub ( ) ;
466
475
setUserSpecsStub = sandbox . stub ( ) ;
467
476
setTestEnvsStub = sandbox . stub ( ) ;
477
+ setSystemEnvsStub = sandbox . stub ( ) ;
468
478
getConfigPathStub = sandbox . stub ( ) ;
469
479
setUsageReportingFlagStub = sandbox . stub ( ) . returns ( undefined ) ;
470
480
checkUploadedStub = sandbox . stub ( ) ;
@@ -511,6 +521,7 @@ describe("runs", () => {
511
521
setCypressConfigFilename : setCypressConfigFilenameStub ,
512
522
setUserSpecs : setUserSpecsStub ,
513
523
setTestEnvs : setTestEnvsStub ,
524
+ setSystemEnvs : setSystemEnvsStub ,
514
525
setUsageReportingFlag : setUsageReportingFlagStub ,
515
526
getConfigPath : getConfigPathStub ,
516
527
setLocal : setLocalStub ,
@@ -583,6 +594,7 @@ describe("runs", () => {
583
594
sinon . assert . calledOnce ( sendUsageReportStub ) ;
584
595
sinon . assert . calledOnce ( deleteResultsStub ) ;
585
596
sinon . assert . calledOnce ( setDefaultsStub ) ;
597
+ sinon . assert . calledOnce ( setSystemEnvsStub ) ;
586
598
587
599
sinon . assert . calledOnceWithExactly (
588
600
sendUsageReportStub ,
@@ -611,6 +623,7 @@ describe("runs", () => {
611
623
setCypressConfigFilenameStub = sandbox . stub ( ) ;
612
624
setUserSpecsStub = sandbox . stub ( ) ;
613
625
setTestEnvsStub = sandbox . stub ( ) ;
626
+ setSystemEnvsStub = sandbox . stub ( ) ;
614
627
getConfigPathStub = sandbox . stub ( ) ;
615
628
setUsageReportingFlagStub = sandbox . stub ( ) . returns ( undefined ) ;
616
629
checkUploadedStub = sandbox . stub ( ) ;
@@ -663,6 +676,7 @@ describe("runs", () => {
663
676
setCypressConfigFilename : setCypressConfigFilenameStub ,
664
677
setUserSpecs : setUserSpecsStub ,
665
678
setTestEnvs : setTestEnvsStub ,
679
+ setSystemEnvs : setSystemEnvsStub ,
666
680
setUsageReportingFlag : setUsageReportingFlagStub ,
667
681
setParallels : setParallelsStub ,
668
682
warnSpecLimit : warnSpecLimitStub ,
@@ -745,6 +759,7 @@ describe("runs", () => {
745
759
sinon . assert . calledOnce ( exportResultsStub ) ;
746
760
sinon . assert . calledOnce ( deleteResultsStub ) ;
747
761
sinon . assert . calledOnce ( setDefaultsStub ) ;
762
+ sinon . assert . calledOnce ( setSystemEnvsStub ) ;
748
763
sinon . assert . match (
749
764
sendUsageReportStub . getCall ( 0 ) . args ,
750
765
[
0 commit comments