mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 07:01:31 +08:00 
			
		
		
		
	test(routes/login): use beforeAll for now
This commit is contained in:
		
							parent
							
								
									55e2abc7de
								
							
						
					
					
						commit
						5462bdeef5
					
				@ -1,4 +1,4 @@
 | 
			
		||||
import { beforeEach, describe, expect, it } from "vitest";
 | 
			
		||||
import { beforeAll, describe, expect, it } from "vitest";
 | 
			
		||||
import supertest from "supertest";
 | 
			
		||||
import { initializeTranslations } from "../services/i18n.js";
 | 
			
		||||
import type { Application, Request, Response, NextFunction } from "express";
 | 
			
		||||
@ -8,7 +8,7 @@ let app: Application;
 | 
			
		||||
 | 
			
		||||
describe("Login Route test", () => {
 | 
			
		||||
 | 
			
		||||
    beforeEach(async () => {
 | 
			
		||||
    beforeAll(async () => {
 | 
			
		||||
        initializeTranslations();
 | 
			
		||||
        app = (await import("../app.js")).default;
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user