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: [