@@ -19,7 +19,6 @@ export class TestExecutionService implements ITestExecutionService {
19
19
private $fs : IFileSystem ,
20
20
private $options : IOptions ,
21
21
private $pluginsService : IPluginsService ,
22
- private $errors : IErrors ,
23
22
private $devicesService : Mobile . IDevicesService ,
24
23
private $childProcess : IChildProcess ) {
25
24
}
@@ -59,7 +58,8 @@ export class TestExecutionService implements ITestExecutionService {
59
58
this . $fs . writeFile ( path . join ( projectDir , TestExecutionService . CONFIG_FILE_NAME ) , configJs ) ;
60
59
}
61
60
62
- await this . preparePlatform ( projectData , platform ) ;
61
+ // Prepare the project AFTER the TestExecutionService.CONFIG_FILE_NAME file is created in node_modules
62
+ // so it will be sent to device.
63
63
64
64
let devices = [ ] ;
65
65
if ( this . $options . debugBrk ) {
@@ -217,32 +217,5 @@ export class TestExecutionService implements ITestExecutionService {
217
217
218
218
return karmaConfig ;
219
219
}
220
-
221
- private async preparePlatform ( projectData : IProjectData , platform : string ) : Promise < void > {
222
- if ( this . $options . bundle ) {
223
- return ;
224
- }
225
-
226
- const appFilesUpdaterOptions : IAppFilesUpdaterOptions = {
227
- bundle : ! ! this . $options . bundle ,
228
- release : this . $options . release ,
229
- useHotModuleReload : this . $options . hmr
230
- } ;
231
- const preparePlatformInfo : IPreparePlatformInfo = {
232
- platform,
233
- appFilesUpdaterOptions,
234
- platformTemplate : this . $options . platformTemplate ,
235
- projectData,
236
- config : this . $options ,
237
- env : this . $options . env
238
- } ;
239
-
240
- // Prepare the project AFTER the TestExecutionService.CONFIG_FILE_NAME file is created in node_modules
241
- // so it will be sent to device.
242
- const isPlatformPrepared = await this . $platformService . preparePlatform ( preparePlatformInfo ) ;
243
- if ( ! isPlatformPrepared ) {
244
- this . $errors . failWithoutHelp ( "Verify that listed files are well-formed and try again the operation." ) ;
245
- }
246
- }
247
220
}
248
221
$injector . register ( 'testExecutionService' , TestExecutionService ) ;
0 commit comments