test: push de env file voor testen naar de repo en pas het pad aan in de setup-file om deze te gebruiken
This commit is contained in:
		
							parent
							
								
									f3d1ca8867
								
							
						
					
					
						commit
						bc4d998922
					
				
					 2 changed files with 4 additions and 1 deletions
				
			
		
							
								
								
									
										3
									
								
								backend/.env.test
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								backend/.env.test
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,3 @@ | |||
| PORT=3000 | ||||
| DWENGO_DB_UPDATE=true | ||||
| DWENGO_DB_NAME=":memory:" | ||||
|  | @ -15,7 +15,7 @@ import { makeTestAnswers } from './test_assets/questions/answers.testdata.js'; | |||
| import { makeTestSubmissions } from './test_assets/assignments/submission.testdata.js'; | ||||
| 
 | ||||
| export async function setupTestApp() { | ||||
|     dotenv.config({ path: '.env.test.example' }); | ||||
|     dotenv.config({ path: '.env.test' }); | ||||
|     await initORM(true); | ||||
| 
 | ||||
|     const em = forkEntityManager(); | ||||
|  |  | |||
		Reference in a new issue
	
	 Laure Jablonski
						Laure Jablonski