@@ -30,30 +30,30 @@ export abstract class FileMockUtilities {
3030
3131 private static readonly mockMethodForFile : Record <
3232 keyof FileMockConstants ,
33- ( mockConstants : MockConstants , entry : keyof MockConstants ) => ( void | Promise < void > )
33+ ( mockConstants : MockConstants , entry : keyof MockConstants ) => void | Promise < void >
3434 > = {
35- DOCKER_COMPOSE_YAML : this . createEmptyFile ,
36- DEV_DOCKER_COMPOSE_YAML : this . createEmptyFile ,
37- LOCAL_DOCKER_COMPOSE_YAML : this . createEmptyFile ,
38- STAGE_DOCKER_COMPOSE_YAML : this . createEmptyFile ,
39- ANGULAR_ESLINT_CONFIG_MJS : this . createEmptyFile ,
40- ANGULAR_PACKAGE_JSON : this . createAngularPackageJson ,
41- ANGULAR_APP_COMPONENT_TS : this . createAppComponentTsFile ,
42- ANGULAR_APP_COMPONENT_HTML : this . createEmptyFile ,
43- ANGULAR_APP_ROUTES_TS : this . createAppRoutesTs ,
44- ANGULAR_ROUTES_TS : this . createEmptyFile ,
45- ANGULAR_APP_CONFIG_TS : this . createAppConfig ,
46- ANGULAR_JSON : this . createAngularJson ,
47- ANGULAR_ENVIRONMENT_MODEL : this . createEmptyFile ,
48- ANGULAR_ENVIRONMENT : this . createEmptyFile ,
49- TS_LIBRARY_PACKAGE_JSON : this . createEmptyFile ,
50- ROOT_PACKAGE_JSON : this . createRootPackageJson ,
51- ENV : this . createEnv ,
52- ENV_PUBLIC : this . createEnvPublic ,
53- GLOBAL_ENV_MODEL : this . createGlobalEnvModel ,
54- WORKSPACE_JSON : WorkspaceUtilities . createConfig ,
55- BASE_TS_CONFIG_JSON : TsConfigUtilities . createBaseTsConfig
56- } ;
35+ DOCKER_COMPOSE_YAML : this . createEmptyFile ,
36+ DEV_DOCKER_COMPOSE_YAML : this . createEmptyFile ,
37+ LOCAL_DOCKER_COMPOSE_YAML : this . createEmptyFile ,
38+ STAGE_DOCKER_COMPOSE_YAML : this . createEmptyFile ,
39+ ANGULAR_ESLINT_CONFIG_MJS : this . createEmptyFile ,
40+ ANGULAR_PACKAGE_JSON : this . createAngularPackageJson ,
41+ ANGULAR_APP_COMPONENT_TS : this . createAppComponentTsFile ,
42+ ANGULAR_APP_COMPONENT_HTML : this . createEmptyFile ,
43+ ANGULAR_APP_ROUTES_TS : this . createAppRoutesTs ,
44+ ANGULAR_ROUTES_TS : this . createEmptyFile ,
45+ ANGULAR_APP_CONFIG_TS : this . createAppConfig ,
46+ ANGULAR_JSON : this . createAngularJson ,
47+ ANGULAR_ENVIRONMENT_MODEL : this . createEmptyFile ,
48+ ANGULAR_ENVIRONMENT : this . createEmptyFile ,
49+ TS_LIBRARY_PACKAGE_JSON : this . createEmptyFile ,
50+ ROOT_PACKAGE_JSON : this . createRootPackageJson ,
51+ ENV : this . createEnv ,
52+ ENV_PUBLIC : this . createEnvPublic ,
53+ GLOBAL_ENV_MODEL : this . createGlobalEnvModel ,
54+ WORKSPACE_JSON : WorkspaceUtilities . createConfig ,
55+ BASE_TS_CONFIG_JSON : TsConfigUtilities . createBaseTsConfig
56+ } ;
5757
5858 static async setup (
5959 mockConstants : MockConstants ,
@@ -195,7 +195,7 @@ export abstract class FileMockUtilities {
195195 private static async createAppConfig ( mockConstants : MockConstants ) : Promise < void > {
196196 await FsUtilities . createFile ( mockConstants . ANGULAR_APP_CONFIG_TS , [
197197 'import { ApplicationConfig, provideZoneChangeDetection } from \'@angular/core\';' ,
198- 'import { provideClientHydration } from \'@angular/platform-browser\';' ,
198+ 'import { provideClientHydration, withEventReplay } from \'@angular/platform-browser\';' ,
199199 'import { provideRouter } from \'@angular/router\';' ,
200200 '' ,
201201 'import { routes } from \'./app.routes\';' ,
@@ -204,7 +204,7 @@ export abstract class FileMockUtilities {
204204 '\tproviders: [' ,
205205 '\t\tprovideZoneChangeDetection({ eventCoalescing: true }),' ,
206206 '\t\tprovideRouter(routes),' ,
207- '\t\tprovideClientHydration()' ,
207+ '\t\tprovideClientHydration(withEventReplay() )' ,
208208 '\t]' ,
209209 '};'
210210 ] , true , false ) ;
0 commit comments