style: fix linting issues met Prettier
This commit is contained in:
		
							parent
							
								
									087215c4fd
								
							
						
					
					
						commit
						8c338d8d56
					
				
					 3 changed files with 14 additions and 14 deletions
				
			
		|  | @ -1,7 +1,7 @@ | ||||||
| import { StudentController } from '../../src/controllers/students'; | import { StudentController } from "../../src/controllers/students"; | ||||||
| import { expect, it } from 'vitest'; | import { expect, it } from "vitest"; | ||||||
| 
 | 
 | ||||||
| it('Get students', async () => { | it("Get students", async () => { | ||||||
|     const controller = new StudentController(); |     const controller = new StudentController(); | ||||||
|     const data = await controller.getAll(true); |     const data = await controller.getAll(true); | ||||||
|     expect(data.students).to.have.length.greaterThan(0); |     expect(data.students).to.have.length.greaterThan(0); | ||||||
|  |  | ||||||
|  | @ -1,5 +1,5 @@ | ||||||
| import { spawn } from 'child_process'; | import { spawn } from "child_process"; | ||||||
| import { ChildProcess } from 'node:child_process'; | import { ChildProcess } from "node:child_process"; | ||||||
| 
 | 
 | ||||||
| let backendProcess: ChildProcess; | let backendProcess: ChildProcess; | ||||||
| 
 | 
 | ||||||
|  | @ -16,18 +16,18 @@ async function waitForEndpoint(url: string, delay = 1000): Promise<void> { | ||||||
| 
 | 
 | ||||||
| export async function setup(): Promise<void> { | export async function setup(): Promise<void> { | ||||||
|     // Spin up the database
 |     // Spin up the database
 | ||||||
|     spawn('docker', ['compose', 'up', 'db', '--detach'], { |     spawn("docker", ["compose", "up", "db", "--detach"], { | ||||||
|         cwd: '..', |         cwd: "..", | ||||||
|         stdio: "pipe", |         stdio: "pipe", | ||||||
|     }); |     }); | ||||||
| 
 | 
 | ||||||
|     backendProcess = spawn('npm', ['run', 'dev'], { |     backendProcess = spawn("npm", ["run", "dev"], { | ||||||
|         cwd: '../backend', |         cwd: "../backend", | ||||||
|         stdio: "pipe", |         stdio: "pipe", | ||||||
|     }); |     }); | ||||||
| 
 | 
 | ||||||
|     // Wait until you can curl the backend
 |     // Wait until you can curl the backend
 | ||||||
|     await waitForEndpoint('http://localhost:3000/api'); |     await waitForEndpoint("http://localhost:3000/api"); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| export async function teardown(): Promise<void> { | export async function teardown(): Promise<void> { | ||||||
|  | @ -35,8 +35,8 @@ export async function teardown(): Promise<void> { | ||||||
|         backendProcess.kill(); |         backendProcess.kill(); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     spawn('docker', ['compose', 'down'], { |     spawn("docker", ["compose", "down"], { | ||||||
|         cwd: '..', |         cwd: "..", | ||||||
|         stdio: "pipe" |         stdio: "pipe", | ||||||
|     }); |     }); | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -10,7 +10,7 @@ export default mergeConfig( | ||||||
|             exclude: [...configDefaults.exclude, "e2e/**"], |             exclude: [...configDefaults.exclude, "e2e/**"], | ||||||
|             root: fileURLToPath(new URL("./", import.meta.url)), |             root: fileURLToPath(new URL("./", import.meta.url)), | ||||||
|             // Startup the backend server, because it is needed for some tests
 |             // Startup the backend server, because it is needed for some tests
 | ||||||
|             globalSetup: [ "./tests/setup-backend.ts" ] |             globalSetup: ["./tests/setup-backend.ts"], | ||||||
|         }, |         }, | ||||||
|     }), |     }), | ||||||
| ); | ); | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 Lint Action
						Lint Action