All files / src/modules/health health.module.ts

100% Statements 10/10
100% Branches 0/0
100% Functions 0/0
100% Lines 8/8

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1611x 11x 11x 11x 11x 11x     11x             11x
import { Module } from '@nestjs/common';
import { TerminusModule } from '@nestjs/terminus';
import { HttpModule } from '@nestjs/axios';
import { HealthController } from '@app/modules/health/health.controller';
import { PrismaModule } from '@app/modules/prisma/prisma.module';
import { RedisModule } from '@app/modules/redis/redis.module';
 
// Custom health indicator for Prisma
import { PrismaHealthIndicatorService } from '@app/modules/health/prisma.health';
 
@Module({
  imports: [TerminusModule, HttpModule, PrismaModule, RedisModule],
  controllers: [HealthController],
  providers: [PrismaHealthIndicatorService],
})
export class HealthModule {}