@@ -312,6 +312,9 @@ test.each([['release'], ['debug'], ['staging']])(
312312 '/' ,
313313 undefined ,
314314 { extraSources : [ ] , ignorePaths : [ ] , env : [ ] } ,
315+ vi . fn ( ) , // startDevServer mock
316+ '0.79.0' , // reactNativeVersion
317+ '/path/to/react-native' , // reactNativePath
315318 ) ;
316319
317320 expect ( tools . outro ) . toBeCalledWith ( 'Success 🎉.' ) ;
@@ -361,6 +364,9 @@ test('runAndroid runs gradle build with custom --appId, --appIdSuffix and --main
361364 '/' ,
362365 undefined ,
363366 { extraSources : [ ] , ignorePaths : [ ] , env : [ ] } ,
367+ vi . fn ( ) , // startDevServer mock
368+ '0.79.0' , // reactNativeVersion
369+ '/path/to/react-native' , // reactNativePath
364370 ) ;
365371
366372 expect ( tools . outro ) . toBeCalledWith ( 'Success 🎉.' ) ;
@@ -388,6 +394,9 @@ test('runAndroid fails to launch an app on not-connected device when specified w
388394 '/' ,
389395 undefined ,
390396 { extraSources : [ ] , ignorePaths : [ ] , env : [ ] } ,
397+ vi . fn ( ) , // startDevServer mock
398+ '0.79.0' , // reactNativeVersion
399+ '/path/to/react-native' , // reactNativePath
391400 ) ;
392401 expect ( logWarnSpy ) . toBeCalledWith (
393402 'No devices or emulators found matching "emulator-5554". Using available one instead.' ,
@@ -457,6 +466,9 @@ test.each([['release'], ['debug']])(
457466 '/' ,
458467 undefined ,
459468 { extraSources : [ ] , ignorePaths : [ ] , env : [ ] } ,
469+ vi . fn ( ) , // startDevServer mock
470+ '0.79.0' , // reactNativeVersion
471+ '/path/to/react-native' , // reactNativePath
460472 ) ;
461473
462474 // we don't want to run installDebug when a device is selected, because gradle will install the app on all connected devices
@@ -517,7 +529,7 @@ test('runAndroid launches an app on all connected devices', async () => {
517529 extraSources : [ ] ,
518530 ignorePaths : [ ] ,
519531 env : [ ] ,
520- } ) ;
532+ } , vi . fn ( ) , '0.79.0' , '/path/to/react-native' ) ;
521533
522534 // Runs assemble debug task with active architectures arm64-v8a, armeabi-v7a
523535 expect ( spawn ) . toBeCalledWith (
@@ -584,6 +596,9 @@ test('runAndroid skips building when --binary-path is passed', async () => {
584596 '/root' ,
585597 undefined ,
586598 { extraSources : [ ] , ignorePaths : [ ] , env : [ ] } ,
599+ vi . fn ( ) , // startDevServer mock
600+ '0.79.0' , // reactNativeVersion
601+ '/path/to/react-native' , // reactNativePath
587602 ) ;
588603
589604 // Skips gradle
0 commit comments