• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

khu-khlug / sight-backend / 14247600948

03 Apr 2025 04:05PM UTC coverage: 50.988% (-1.0%) from 51.939%
14247600948

push

github

web-flow
feat: 디스코드 메신저 구현 (#118)

823 of 2618 branches covered (31.44%)

Branch coverage included in aggregate %.

29 of 64 new or added lines in 13 files covered. (45.31%)

45 existing lines in 10 files now uncovered.

2272 of 3452 relevant lines covered (65.82%)

12.83 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/core/core.module.ts
1
import { defineConfig } from '@mikro-orm/mysql';
2
import { MikroOrmModule } from '@mikro-orm/nestjs';
×
3
import { Global, Module } from '@nestjs/common';
×
4
import { ConfigModule, ConfigService } from '@nestjs/config';
×
5
import { CqrsModule } from '@nestjs/cqrs';
×
6
import { ClsModule } from 'nestjs-cls';
7

8
import { AuthModule } from '@khlug/core/auth/AuthModule';
9
import { configuration } from '@khlug/core/config';
10
import { DatabaseConfig } from '@khlug/core/config/DatabaseConfig';
11
import { DiscordModule } from '@khlug/core/discord/DiscordModule';
12
import { EntityModels } from '@khlug/core/persistence/Entities';
13

14
@Global()
15
@Module({
16
  imports: [
17
    AuthModule,
18
    ClsModule.forRoot({ middleware: { mount: true } }),
19
    ConfigModule.forRoot({
×
20
      envFilePath: `.env.${process.env.NODE_ENV}`,
21
      load: [configuration],
22
    }),
23
    MikroOrmModule.forRootAsync({
24
      imports: [ConfigModule],
25
      inject: [ConfigService],
26
      useFactory: (configService: ConfigService) => {
27
        const databaseConfig =
28
          configService.getOrThrow<DatabaseConfig>('database');
29

30
        return defineConfig({
31
          entities: EntityModels,
32
          host: databaseConfig?.host,
33
          port: databaseConfig?.port,
34
          user: databaseConfig?.username,
35
          password: databaseConfig?.password,
36
          dbName: databaseConfig?.database,
37
        });
38
      },
39
    }),
40
    CqrsModule,
41
    DiscordModule,
42
  ],
NEW
43
  exports: [ClsModule, ConfigModule, MikroOrmModule, CqrsModule, DiscordModule],
×
44
})
×
45
export class CoreModule {}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc