Merge branch 'develop' into mkjs-n
This commit is contained in:
commit
d647df7f63
116 changed files with 2386 additions and 1892 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue