@@ -132,16 +132,16 @@ describe('build_device plugin', () => {
132132 args : string [ ] ;
133133 logPrefix : string ;
134134 silent : boolean ;
135- timeout : number | undefined ;
135+ opts : { cwd ?: string } | undefined ;
136136 } > = [ ] ;
137137
138138 const stubExecutor = async (
139139 args : string [ ] ,
140140 logPrefix : string ,
141141 silent : boolean ,
142- timeout ?: number ,
142+ opts ?: { cwd ?: string } ,
143143 ) => {
144- commandCalls . push ( { args, logPrefix, silent, timeout } ) ;
144+ commandCalls . push ( { args, logPrefix, silent, opts } ) ;
145145 return {
146146 success : true ,
147147 output : 'Build succeeded' ,
@@ -175,7 +175,7 @@ describe('build_device plugin', () => {
175175 ] ,
176176 logPrefix : 'iOS Device Build' ,
177177 silent : true ,
178- timeout : undefined ,
178+ opts : { cwd : '/path/to' } ,
179179 } ) ;
180180 } ) ;
181181
@@ -184,16 +184,16 @@ describe('build_device plugin', () => {
184184 args : string [ ] ;
185185 logPrefix : string ;
186186 silent : boolean ;
187- timeout : number | undefined ;
187+ opts : { cwd ?: string } | undefined ;
188188 } > = [ ] ;
189189
190190 const stubExecutor = async (
191191 args : string [ ] ,
192192 logPrefix : string ,
193193 silent : boolean ,
194- timeout ?: number ,
194+ opts ?: { cwd ?: string } ,
195195 ) => {
196- commandCalls . push ( { args, logPrefix, silent, timeout } ) ;
196+ commandCalls . push ( { args, logPrefix, silent, opts } ) ;
197197 return {
198198 success : true ,
199199 output : 'Build succeeded' ,
@@ -227,7 +227,7 @@ describe('build_device plugin', () => {
227227 ] ,
228228 logPrefix : 'iOS Device Build' ,
229229 silent : true ,
230- timeout : undefined ,
230+ opts : { cwd : '/path/to' } ,
231231 } ) ;
232232 } ) ;
233233
@@ -293,16 +293,16 @@ describe('build_device plugin', () => {
293293 args : string [ ] ;
294294 logPrefix : string ;
295295 silent : boolean ;
296- timeout : number | undefined ;
296+ opts : { cwd ?: string } | undefined ;
297297 } > = [ ] ;
298298
299299 const stubExecutor = async (
300300 args : string [ ] ,
301301 logPrefix : string ,
302302 silent : boolean ,
303- timeout ?: number ,
303+ opts ?: { cwd ?: string } ,
304304 ) => {
305- commandCalls . push ( { args, logPrefix, silent, timeout } ) ;
305+ commandCalls . push ( { args, logPrefix, silent, opts } ) ;
306306 return {
307307 success : true ,
308308 output : 'Build succeeded' ,
@@ -342,7 +342,7 @@ describe('build_device plugin', () => {
342342 ] ,
343343 logPrefix : 'iOS Device Build' ,
344344 silent : true ,
345- timeout : undefined ,
345+ opts : { cwd : '/path/to' } ,
346346 } ) ;
347347 } ) ;
348348 } ) ;
0 commit comments