Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 5462bde

Browse files
committed
test(routes/login): use beforeAll for now
1 parent 55e2abc commit 5462bde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routes/login.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { beforeEach, describe, expect, it } from "vitest";
1+
import { beforeAll, describe, expect, it } from "vitest";
22
import supertest from "supertest";
33
import { initializeTranslations } from "../services/i18n.js";
44
import type { Application, Request, Response, NextFunction } from "express";
@@ -8,7 +8,7 @@ let app: Application;
88

99
describe("Login Route test", () => {
1010

11-
beforeEach(async () => {
11+
beforeAll(async () => {
1212
initializeTranslations();
1313
app = (await import("../app.js")).default;
1414
});

0 commit comments

Comments
 (0)