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),
|
dbName: getEnvVar(EnvVars.DbName),
|
||||||
subscribers: [new SqliteAutoincrementSubscriber()],
|
subscribers: [new SqliteAutoincrementSubscriber()],
|
||||||
entities: entities,
|
entities: entities,
|
||||||
|
persistOnCreate: false, // Do not implicitly save entities when they are created via `create`.
|
||||||
// EntitiesTs: entitiesTs,
|
// EntitiesTs: entitiesTs,
|
||||||
|
|
||||||
// Workaround: vitest: `TypeError: Unknown file extension ".ts"` (ERR_UNKNOWN_FILE_EXTENSION)
|
// 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),
|
user: getEnvVar(EnvVars.DbUsername),
|
||||||
password: getEnvVar(EnvVars.DbPassword),
|
password: getEnvVar(EnvVars.DbPassword),
|
||||||
entities: entities,
|
entities: entities,
|
||||||
persistOnCreate: false, // Entities should not be implicitly persisted when calling create(...), but only after
|
persistOnCreate: false, // Do not implicitly save entities when they are created via `create`.
|
||||||
// They were saved explicitly.
|
|
||||||
// EntitiesTs: entitiesTs,
|
// EntitiesTs: entitiesTs,
|
||||||
|
|
||||||
// Logging
|
// Logging
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue