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; });