test(server): try to use fake timers to avoid flaky test in the CI

This commit is contained in:
Elian Doran 2025-10-07 15:34:58 +03:00
parent c671f91bca
commit 831a184c2a
No known key found for this signature in database

View File

@ -9,6 +9,7 @@ describe("Share API test", () => {
let cannotSetHeadersCount = 0;
beforeAll(async () => {
vi.useFakeTimers();
const buildApp = (await import("../app.js")).default;
app = await buildApp();
app.use((err: unknown, req: Request, res: Response, next: NextFunction) => {