We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19c6ae6 commit 35efd2aCopy full SHA for 35efd2a
apps/server/src/routes/login.spec.ts
@@ -4,6 +4,7 @@ import type { Application } from "express";
4
import dayjs from "dayjs";
5
import { type SQLiteSessionStore } from "./session_parser.js";
6
import { SessionData } from "express-session";
7
+import cls from "../services/cls.js";
8
9
let app: Application;
10
let sessionStore: SQLiteSessionStore;
@@ -106,7 +107,7 @@ describe("Login Route test", () => {
106
107
expect(expiry).toBeTruthy();
108
109
vi.setSystemTime(expiry!);
- vi.advanceTimersByTime(CLEAN_UP_INTERVAL);
110
+ cls.init(() => vi.advanceTimersByTime(CLEAN_UP_INTERVAL));
111
({ session } = await getSessionFromCookie(setCookieHeader));
112
expect(session).toBeFalsy();
113
});
0 commit comments