From e3b14fd871508b62a4a30234c74f736467766032 Mon Sep 17 00:00:00 2001 From: aelassas Date: Tue, 19 Nov 2024 15:03:21 +0100 Subject: [PATCH] Add globalSetup.ts comments --- api/tests/globalSetup.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/tests/globalSetup.ts b/api/tests/globalSetup.ts index 9d3ce3df3..906fd0203 100644 --- a/api/tests/globalSetup.ts +++ b/api/tests/globalSetup.ts @@ -9,7 +9,9 @@ import User from '../src/models/User' export default async function globalSetup() { try { - // env admin + // + // create admin from env if not found + // if (env.ADMIN_EMAIL) { await databaseHelper.connect(env.DB_URI, false, false) const adminFromEnv = await User.findOne({ email: env.ADMIN_EMAIL })