Merge branch 'develop' into mkjs-n

This commit is contained in:
tamaina
2023-05-29 13:02:41 +00:00
116 changed files with 2386 additions and 1892 deletions

View File

@@ -482,7 +482,7 @@ export async function testPaginationConsistency<Entity extends { id: string, cre
}
export async function initTestDb(justBorrow = false, initEntities?: any[]) {
if (process.env.NODE_ENV !== 'test') throw 'NODE_ENV is not a test';
if (process.env.NODE_ENV !== 'test') throw new Error('NODE_ENV is not a test');
const db = new DataSource({
type: 'postgres',