@@ -49,6 +49,7 @@ describe('publishMongosh', function () {
4949 let barque : Barque ;
5050 let pushTags : typeof pushTagsType ;
5151 const getEvergreenArtifactUrl = getArtifactUrl ;
52+ let spawnSync : sinon . SinonStub ;
5253
5354 beforeEach ( function ( ) {
5455 config = { ...dummyConfig } ;
@@ -61,6 +62,7 @@ describe('publishMongosh', function () {
6162 pushTags = sinon . spy ( ) ;
6263 bumpMongoshReleasePackages = sinon . spy ( ) ;
6364 bumpAuxiliaryPackages = sinon . spy ( ) ;
65+ spawnSync = sinon . stub ( ) . resolves ( ) ;
6466
6567 githubRepo = createStubRepo ( ) ;
6668 mongoHomebrewCoreForkRepo = createStubRepo ( ) ;
@@ -108,7 +110,8 @@ describe('publishMongosh', function () {
108110 shouldDoPublicRelease ,
109111 getEvergreenArtifactUrl ,
110112 bumpMongoshReleasePackages ,
111- bumpAuxiliaryPackages
113+ bumpAuxiliaryPackages ,
114+ spawnSync
112115 ) ;
113116 } catch ( e : any ) {
114117 return expect ( e . message ) . to . contain ( 'Could not find prior draft tag' ) ;
@@ -137,7 +140,8 @@ describe('publishMongosh', function () {
137140 shouldDoPublicRelease ,
138141 getEvergreenArtifactUrl ,
139142 bumpMongoshReleasePackages ,
140- bumpAuxiliaryPackages
143+ bumpAuxiliaryPackages ,
144+ spawnSync
141145 ) ;
142146 } catch ( e : any ) {
143147 return expect ( e . message ) . to . contain ( 'Version mismatch' ) ;
@@ -161,7 +165,8 @@ describe('publishMongosh', function () {
161165 shouldDoPublicRelease ,
162166 getEvergreenArtifactUrl ,
163167 bumpMongoshReleasePackages ,
164- bumpAuxiliaryPackages
168+ bumpAuxiliaryPackages ,
169+ spawnSync
165170 ) ;
166171
167172 expect ( barque . releaseToBarque ) . to . have . been . callCount ( 26 ) ;
@@ -195,7 +200,8 @@ describe('publishMongosh', function () {
195200 shouldDoPublicRelease ,
196201 getEvergreenArtifactUrl ,
197202 bumpMongoshReleasePackages ,
198- bumpAuxiliaryPackages
203+ bumpAuxiliaryPackages ,
204+ spawnSync
199205 ) ;
200206
201207 expect ( createAndPublishDownloadCenterConfig ) . to . have . been . calledWith (
@@ -221,7 +227,8 @@ describe('publishMongosh', function () {
221227 shouldDoPublicRelease ,
222228 getEvergreenArtifactUrl ,
223229 bumpMongoshReleasePackages ,
224- bumpAuxiliaryPackages
230+ bumpAuxiliaryPackages ,
231+ spawnSync
225232 ) ;
226233
227234 expect ( githubRepo . promoteRelease ) . to . have . been . calledWith ( config ) ;
@@ -242,7 +249,8 @@ describe('publishMongosh', function () {
242249 shouldDoPublicRelease ,
243250 getEvergreenArtifactUrl ,
244251 bumpMongoshReleasePackages ,
245- bumpAuxiliaryPackages
252+ bumpAuxiliaryPackages ,
253+ spawnSync
246254 ) ;
247255
248256 expect ( writeBuildInfo ) . to . have . been . calledOnceWith ( config ) ;
@@ -264,7 +272,8 @@ describe('publishMongosh', function () {
264272 shouldDoPublicRelease ,
265273 getEvergreenArtifactUrl ,
266274 bumpMongoshReleasePackages ,
267- bumpAuxiliaryPackages
275+ bumpAuxiliaryPackages ,
276+ spawnSync
268277 ) ;
269278
270279 expect ( publishToHomebrew ) . to . have . been . calledWith (
@@ -298,7 +307,8 @@ describe('publishMongosh', function () {
298307 shouldDoPublicRelease ,
299308 getEvergreenArtifactUrl ,
300309 bumpMongoshReleasePackages ,
301- bumpAuxiliaryPackages
310+ bumpAuxiliaryPackages ,
311+ spawnSync
302312 ) ;
303313
304314 expect ( createAndPublishDownloadCenterConfig ) . not . to . have . been . called ;
@@ -319,7 +329,8 @@ describe('publishMongosh', function () {
319329 shouldDoPublicRelease ,
320330 getEvergreenArtifactUrl ,
321331 bumpMongoshReleasePackages ,
322- bumpAuxiliaryPackages
332+ bumpAuxiliaryPackages ,
333+ spawnSync
323334 ) ;
324335
325336 expect ( githubRepo . promoteRelease ) . not . to . have . been . called ;
@@ -340,7 +351,8 @@ describe('publishMongosh', function () {
340351 shouldDoPublicRelease ,
341352 getEvergreenArtifactUrl ,
342353 bumpMongoshReleasePackages ,
343- bumpAuxiliaryPackages
354+ bumpAuxiliaryPackages ,
355+ spawnSync
344356 ) ;
345357
346358 expect ( publishToNpm ) . not . to . have . been . called ;
@@ -361,7 +373,8 @@ describe('publishMongosh', function () {
361373 shouldDoPublicRelease ,
362374 getEvergreenArtifactUrl ,
363375 bumpMongoshReleasePackages ,
364- bumpAuxiliaryPackages
376+ bumpAuxiliaryPackages ,
377+ spawnSync
365378 ) ;
366379
367380 expect ( publishToHomebrew ) . not . to . have . been . called ;
@@ -382,7 +395,8 @@ describe('publishMongosh', function () {
382395 shouldDoPublicRelease ,
383396 getEvergreenArtifactUrl ,
384397 bumpMongoshReleasePackages ,
385- bumpAuxiliaryPackages
398+ bumpAuxiliaryPackages ,
399+ spawnSync
386400 ) ;
387401
388402 expect ( barque . releaseToBarque ) . not . to . have . been . called ;
0 commit comments