import { DynamicModule } from '@nestjs/common'

import { TestConfig_Test } from 'apps/api/src/api.config'

import { E2EController } from './e2e.controller'
import { provideTestDataService } from './test-data.service'

export class E2EModule {
  static forRoot(config: TestConfig_Test): DynamicModule {
    return {
      module: E2EModule,
      imports: [],
      controllers: [E2EController],
      providers: [provideTestDataService(config)],
      exports: [],
    }
  }
}
