Skip to content

Build your personal knowledge base with Trilium Notes

test(routes/login): use beforeAll for now

Panagiotis Papadopoulos5462bdeef51e
diff --git a/src/routes/login.spec.ts b/src/routes/login.spec.ts
index 29b314647d..9053edc156 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;
});