import { DynamicModule , Module } from '@nestjs/common' ; import { ConfigModule , ConfigService } from '@fc/config' ; import { LoggerModule } from '@fc/logger' ; import { MockServiceProviderModule } from '@fc/mock-service-provider' ; @ Module ( { } ) export class AppModule { static forRoot ( configService ) { return { module : AppModule , imports : [ ConfigModule . forRoot ( configService ) , LoggerModule , MockServiceProviderModule , ] , } ; } }