mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 19:12:27 +08:00
test(routes/login): use beforeAll for now
This commit is contained in:
parent
55e2abc7de
commit
5462bdeef5
@ -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;
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user