From 6c3bfc148a1bd3da41b905fa8f9615abb8b937c5 Mon Sep 17 00:00:00 2001 From: minjungw00 Date: Wed, 20 Nov 2024 13:12:04 +0900 Subject: [PATCH] =?UTF-8?q?test:=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20=EC=BD=94?= =?UTF-8?q?=EB=93=9C=20=ED=99=98=EA=B2=BD=EB=B3=80=EC=88=98=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #140 --- server/src/app.module.spec.ts | 3 +++ server/src/auth/test/auth.module.spec.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/server/src/app.module.spec.ts b/server/src/app.module.spec.ts index c5f57ebb..e857b64e 100644 --- a/server/src/app.module.spec.ts +++ b/server/src/app.module.spec.ts @@ -18,6 +18,9 @@ describe("AppModule", () => { if (!process.env.JWT_SECRET) { process.env.JWT_SECRET = "test-secret"; } + if (!process.env.JWT_REFRESH_SECRET) { + process.env.JWT_REFRESH_SECRET = "test-secret"; + } testingModule = await Test.createTestingModule({ imports: [MongooseModule.forRoot(process.env.MONGO_URI), AppModule], diff --git a/server/src/auth/test/auth.module.spec.ts b/server/src/auth/test/auth.module.spec.ts index 0e234beb..34c41af2 100644 --- a/server/src/auth/test/auth.module.spec.ts +++ b/server/src/auth/test/auth.module.spec.ts @@ -27,6 +27,9 @@ describe("AuthModule", () => { if (!process.env.JWT_SECRET) { process.env.JWT_SECRET = "test-secret"; } + if (!process.env.JWT_REFRESH_SECRET) { + process.env.JWT_REFRESH_SECRET = "test-secret"; + } testingModule = await Test.createTestingModule({ imports: [