mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 03:29:02 +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; | ||||
| 
 | ||||
|     beforeAll(async () => { | ||||
|         vi.useFakeTimers(); | ||||
|         const buildApp = (await import("../app.js")).default; | ||||
|         app = await buildApp(); | ||||
|         app.use((err: unknown, req: Request, res: Response, next: NextFunction) => { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran