test(server): ensure session info exists

This commit is contained in:
Elian Doran
2025-06-07 09:55:55 +03:00
parent 2ceab66b98
commit e003ec3b6f
3 changed files with 59 additions and 8 deletions

View File

@@ -0,0 +1,14 @@
import { beforeAll, describe, expect, it } from "vitest";
import supertest from "supertest";
import type { Application } from "express";
import dayjs from "dayjs";
let app: Application;
describe("Session parser", () => {
beforeAll(async () => {
const buildApp = (await import("../app.js")).default;
app = await buildApp();
});
});