fix(backend): .js aan alle imports toegevoegd
Dit was nodig om ervoor te zorgen dat de gebouwde applicatie ook haar dependencies vindt.
This commit is contained in:
		
							parent
							
								
									48c8ce7c57
								
							
						
					
					
						commit
						73a84fa3ef
					
				
					 31 changed files with 107 additions and 107 deletions
				
			
		|  | @ -1,8 +1,8 @@ | |||
| import {setupTestApp} from "../setup-tests" | ||||
| import {Student} from "../../src/entities/users/student.entity"; | ||||
| import {setupTestApp} from "../setup-tests.js" | ||||
| import {Student} from "../../src/entities/users/student.entity.js"; | ||||
| import {describe, it, expect, beforeAll} from "vitest"; | ||||
| import {StudentRepository} from "../../src/data/users/student-repository"; | ||||
| import {getStudentRepository} from "../../src/data/repositories"; | ||||
| import {StudentRepository} from "../../src/data/users/student-repository.js"; | ||||
| import {getStudentRepository} from "../../src/data/repositories.js"; | ||||
| 
 | ||||
| const username = "teststudent"; | ||||
| const firstName = "John"; | ||||
|  |  | |||
|  | @ -1,4 +1,4 @@ | |||
| import {initORM} from "../src/orm"; | ||||
| import {initORM} from "../src/orm.js"; | ||||
| import dotenv from "dotenv"; | ||||
| 
 | ||||
| export async function setupTestApp() { | ||||
|  |  | |||
		Reference in a new issue
	
	 Gerald Schmittinger
						Gerald Schmittinger