@@ -18,6 +18,7 @@ import { Options } from "../lib/options";
18
18
import { HostInfo } from "../lib/common/host-info" ;
19
19
import { ProjectTemplatesService } from "../lib/services/project-templates-service" ;
20
20
import { SettingsService } from "../lib/common/test/unit-tests/stubs" ;
21
+ import { DevicePlatformsConstants } from "../lib/common/mobile/device-platforms-constants" ;
21
22
22
23
const mockProjectNameValidator = {
23
24
validate : ( ) => true
@@ -157,8 +158,13 @@ class ProjectIntegrationTest {
157
158
} ) ;
158
159
this . testInjector . register ( "npmInstallationManager" , NpmInstallationManager ) ;
159
160
this . testInjector . register ( "settingsService" , SettingsService ) ;
160
- this . testInjector . register ( "devicePlatformsConstants" , { } ) ;
161
- this . testInjector . register ( "androidResourcesMigrationService" , { } ) ;
161
+ this . testInjector . register ( "devicePlatformsConstants" , DevicePlatformsConstants ) ;
162
+ this . testInjector . register ( "androidResourcesMigrationService" , {
163
+ hasMigrated : ( appResourcesDir : string ) : boolean => true
164
+ } ) ;
165
+ this . testInjector . register ( "hooksService" , {
166
+ executeAfterHooks : async ( commandName : string , hookArguments ?: IDictionary < any > ) : Promise < void > => undefined
167
+ } ) ;
162
168
}
163
169
}
164
170
@@ -436,6 +442,9 @@ describe("Project Service Tests", () => {
436
442
testInjector . register ( "projectHelper" , { } ) ;
437
443
testInjector . register ( "npmInstallationManager" , { } ) ;
438
444
testInjector . register ( "settingsService" , SettingsService ) ;
445
+ testInjector . register ( "hooksService" , {
446
+ executeAfterHooks : async ( commandName : string , hookArguments ?: IDictionary < any > ) : Promise < void > => undefined
447
+ } ) ;
439
448
440
449
return testInjector ;
441
450
} ;
0 commit comments