@@ -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
sendUsageReportStub = sandbox . stub ( ) . callsFake ( function ( ) {
@@ -256,7 +260,8 @@ describe("runs", () => {
256
260
deleteResults : deleteResultsStub ,
257
261
setDefaults : setDefaultsStub ,
258
262
getNumberOfSpecFiles : getNumberOfSpecFilesStub ,
259
- setLocalConfigFile : setLocalConfigFileStub
263
+ setLocalConfigFile : setLocalConfigFileStub ,
264
+ setSystemEnvs : setSystemEnvsStub
260
265
} ,
261
266
'../helpers/capabilityHelper' : {
262
267
validate : capabilityValidatorStub ,
@@ -301,6 +306,7 @@ describe("runs", () => {
301
306
sinon . assert . calledOnce ( deleteZipStub ) ;
302
307
sinon . assert . calledOnce ( deleteResultsStub ) ;
303
308
sinon . assert . calledOnce ( setDefaultsStub ) ;
309
+ sinon . assert . calledOnce ( setSystemEnvsStub ) ;
304
310
sinon . assert . calledOnceWithExactly (
305
311
sendUsageReportStub ,
306
312
bsConfig ,
@@ -327,6 +333,7 @@ describe("runs", () => {
327
333
setCypressConfigFilenameStub = sandbox . stub ( ) ;
328
334
setUserSpecsStub = sandbox . stub ( ) ;
329
335
setTestEnvsStub = sandbox . stub ( ) ;
336
+ setSystemEnvsStub = sandbox . stub ( ) ;
330
337
getConfigPathStub = sandbox . stub ( ) ;
331
338
setUsageReportingFlagStub = sandbox . stub ( ) . returns ( undefined ) ;
332
339
sendUsageReportStub = sandbox . stub ( ) . callsFake ( function ( ) {
@@ -370,6 +377,7 @@ describe("runs", () => {
370
377
setCypressConfigFilename : setCypressConfigFilenameStub ,
371
378
setUserSpecs : setUserSpecsStub ,
372
379
setTestEnvs : setTestEnvsStub ,
380
+ setSystemEnvs : setSystemEnvsStub ,
373
381
setUsageReportingFlag : setUsageReportingFlagStub ,
374
382
getConfigPath : getConfigPathStub ,
375
383
setLocal : setLocalStub ,
@@ -426,6 +434,7 @@ describe("runs", () => {
426
434
sinon . assert . calledOnce ( zipUploadStub ) ;
427
435
sinon . assert . calledOnce ( deleteResultsStub ) ;
428
436
sinon . assert . calledOnce ( setDefaultsStub ) ;
437
+ sinon . assert . calledOnce ( setSystemEnvsStub ) ;
429
438
sinon . assert . calledOnceWithExactly (
430
439
sendUsageReportStub ,
431
440
bsConfig ,
@@ -455,6 +464,7 @@ describe("runs", () => {
455
464
setCypressConfigFilenameStub = sandbox . stub ( ) ;
456
465
setUserSpecsStub = sandbox . stub ( ) ;
457
466
setTestEnvsStub = sandbox . stub ( ) ;
467
+ setSystemEnvsStub = sandbox . stub ( ) ;
458
468
getConfigPathStub = sandbox . stub ( ) ;
459
469
setUsageReportingFlagStub = sandbox . stub ( ) . returns ( undefined ) ;
460
470
sendUsageReportStub = sandbox . stub ( ) . callsFake ( function ( ) {
@@ -500,6 +510,7 @@ describe("runs", () => {
500
510
setCypressConfigFilename : setCypressConfigFilenameStub ,
501
511
setUserSpecs : setUserSpecsStub ,
502
512
setTestEnvs : setTestEnvsStub ,
513
+ setSystemEnvs : setSystemEnvsStub ,
503
514
setUsageReportingFlag : setUsageReportingFlagStub ,
504
515
getConfigPath : getConfigPathStub ,
505
516
setLocal : setLocalStub ,
@@ -568,6 +579,7 @@ describe("runs", () => {
568
579
sinon . assert . calledOnce ( sendUsageReportStub ) ;
569
580
sinon . assert . calledOnce ( deleteResultsStub ) ;
570
581
sinon . assert . calledOnce ( setDefaultsStub ) ;
582
+ sinon . assert . calledOnce ( setSystemEnvsStub ) ;
571
583
572
584
sinon . assert . calledOnceWithExactly (
573
585
sendUsageReportStub ,
@@ -596,6 +608,7 @@ describe("runs", () => {
596
608
setCypressConfigFilenameStub = sandbox . stub ( ) ;
597
609
setUserSpecsStub = sandbox . stub ( ) ;
598
610
setTestEnvsStub = sandbox . stub ( ) ;
611
+ setSystemEnvsStub = sandbox . stub ( ) ;
599
612
getConfigPathStub = sandbox . stub ( ) ;
600
613
setUsageReportingFlagStub = sandbox . stub ( ) . returns ( undefined ) ;
601
614
sendUsageReportStub = sandbox . stub ( ) . callsFake ( function ( ) {
@@ -647,6 +660,7 @@ describe("runs", () => {
647
660
setCypressConfigFilename : setCypressConfigFilenameStub ,
648
661
setUserSpecs : setUserSpecsStub ,
649
662
setTestEnvs : setTestEnvsStub ,
663
+ setSystemEnvs : setSystemEnvsStub ,
650
664
setUsageReportingFlag : setUsageReportingFlagStub ,
651
665
setParallels : setParallelsStub ,
652
666
warnSpecLimit : warnSpecLimitStub ,
@@ -725,6 +739,7 @@ describe("runs", () => {
725
739
sinon . assert . calledOnce ( exportResultsStub ) ;
726
740
sinon . assert . calledOnce ( deleteResultsStub ) ;
727
741
sinon . assert . calledOnce ( setDefaultsStub ) ;
742
+ sinon . assert . calledOnce ( setSystemEnvsStub ) ;
728
743
sinon . assert . match (
729
744
sendUsageReportStub . getCall ( 0 ) . args ,
730
745
[
0 commit comments