Skip to content

Commit 84d7c1c

Browse files
committed
ci: debug e2e test setting
1 parent 3f61163 commit 84d7c1c

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

test/factories/app.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,20 @@ const setupRedis = async () => {
121121

122122
const 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,

0 commit comments

Comments
 (0)