mirror of
https://github.com/zadam/trilium.git
synced 2025-10-28 18:18:55 +01:00
test(server): try to use fake timers to avoid flaky test in the CI
This commit is contained in:
parent
c671f91bca
commit
831a184c2a
@ -9,6 +9,7 @@ describe("Share API test", () => {
|
|||||||
let cannotSetHeadersCount = 0;
|
let cannotSetHeadersCount = 0;
|
||||||
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
|
vi.useFakeTimers();
|
||||||
const buildApp = (await import("../app.js")).default;
|
const buildApp = (await import("../app.js")).default;
|
||||||
app = await buildApp();
|
app = await buildApp();
|
||||||
app.use((err: unknown, req: Request, res: Response, next: NextFunction) => {
|
app.use((err: unknown, req: Request, res: Response, next: NextFunction) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user