From 53e739df2c2d509a1bd9f5ac0f0c7dcfe05cc531 Mon Sep 17 00:00:00 2001 From: jinddings Date: Tue, 5 Nov 2024 13:58:48 +0900 Subject: [PATCH] =?UTF-8?q?=EF=BF=BD=20fix:=20lint=20=EC=98=A4=EB=A5=98?= =?UTF-8?q?=EC=82=AC=ED=95=AD=20=EC=9E=84=EC=8B=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BE/src/main.ts | 8 +++++++- BE/test/app.e2e-spec.ts | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/BE/src/main.ts b/BE/src/main.ts index f76bc8d9..72ae327b 100644 --- a/BE/src/main.ts +++ b/BE/src/main.ts @@ -1,8 +1,14 @@ import { NestFactory } from '@nestjs/core'; +import { Logger } from '@nestjs/common'; import { AppModule } from './app.module'; async function bootstrap() { const app = await NestFactory.create(AppModule); await app.listen(process.env.PORT ?? 3000); } -bootstrap(); + +const logger = new Logger('Bootstrap'); +bootstrap().catch((err) => { + logger.error('Failed to start application:', err); + process.exit(1); +}); diff --git a/BE/test/app.e2e-spec.ts b/BE/test/app.e2e-spec.ts index 0012dcd2..21c010dd 100644 --- a/BE/test/app.e2e-spec.ts +++ b/BE/test/app.e2e-spec.ts @@ -16,6 +16,7 @@ describe('AppController (e2e)', () => { }); it('/ (GET)', () => { + // eslint-disable-next-line @typescript-eslint/no-unsafe-argument return request(app.getHttpServer()) .get('/') .expect(200)