fix(backend): persistOnCreate ook aan test-config toegevoegd
This commit is contained in:
		
							parent
							
								
									739bd190ab
								
							
						
					
					
						commit
						091405f63f
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -49,6 +49,7 @@ function config(testingMode: boolean = false): Options { | |||
|             dbName: getEnvVar(EnvVars.DbName), | ||||
|             subscribers: [new SqliteAutoincrementSubscriber()], | ||||
|             entities: entities, | ||||
|             persistOnCreate: false, // Do not implicitly save entities when they are created via `create`.
 | ||||
|             // EntitiesTs: entitiesTs,
 | ||||
| 
 | ||||
|             // Workaround: vitest: `TypeError: Unknown file extension ".ts"` (ERR_UNKNOWN_FILE_EXTENSION)
 | ||||
|  | @ -65,8 +66,7 @@ function config(testingMode: boolean = false): Options { | |||
|         user: getEnvVar(EnvVars.DbUsername), | ||||
|         password: getEnvVar(EnvVars.DbPassword), | ||||
|         entities: entities, | ||||
|         persistOnCreate: false, // Entities should not be implicitly persisted when calling create(...), but only after
 | ||||
|         // They were saved explicitly.
 | ||||
|         persistOnCreate: false, // Do not implicitly save entities when they are created via `create`.
 | ||||
|         // EntitiesTs: entitiesTs,
 | ||||
| 
 | ||||
|         // Logging
 | ||||
|  |  | |||
		Reference in a new issue
	
	 Gerald Schmittinger
						Gerald Schmittinger