File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -121,6 +121,20 @@ const setupRedis = async () => {
121121
122122const setupTestDatabase = async ( ) => {
123123 const database = `test_${ uuid4 ( ) } ` ;
124+ console . log ( '🚀 ~ file: app.ts ~ line 124 ~ setupTestDatabase ~ database' , {
125+ type : dbConfig . type ,
126+ host : process . env . DB_HOST || dbConfig . host ,
127+ port : parseInt ( process . env . DB_PORT ) || dbConfig . port ,
128+ database : process . env . DB_DATABASE_NAME || dbConfig . database ,
129+ username : process . env . DB_USERNAME || dbConfig . username ,
130+ password : process . env . DB_PASSWORD || dbConfig . password ,
131+ logging : false ,
132+ synchronize : false ,
133+ migrationsRun : true ,
134+ migrationsTableName : 'migrations' ,
135+ migrations : [ __dirname + '/../../src/database/migrations/**/*{.ts,.js}' ] ,
136+ entities : [ __dirname + '/../../src/**/*.entity{.ts,.js}' ]
137+ } ) ;
124138 const manager = new ConnectionManager ( ) . create ( {
125139 type : dbConfig . type ,
126140 host : process . env . DB_HOST || dbConfig . host ,
You can’t perform that action at this time.
0 commit comments