mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-04 16:35:56 +02:00
Merge branch 'develop' into mkjs-n
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user