From 5462bdeef51e0856c59638435b50d03981ffdc43 Mon Sep 17 00:00:00 2001 From: Panagiotis Papadopoulos Date: Wed, 16 Apr 2025 10:06:12 +0200 Subject: [PATCH] test(routes/login): use beforeAll for now --- src/routes/login.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/login.spec.ts b/src/routes/login.spec.ts index 29b314647..9053edc15 100644 --- a/src/routes/login.spec.ts +++ b/src/routes/login.spec.ts @@ -1,4 +1,4 @@ -import { beforeEach, describe, expect, it } from "vitest"; +import { beforeAll, describe, expect, it } from "vitest"; import supertest from "supertest"; import { initializeTranslations } from "../services/i18n.js"; import type { Application, Request, Response, NextFunction } from "express"; @@ -8,7 +8,7 @@ let app: Application; describe("Login Route test", () => { - beforeEach(async () => { + beforeAll(async () => { initializeTranslations(); app = (await import("../app.js")).default; });