Skip to content

Commit

Permalink
ci: debug e2e test setting
Browse files Browse the repository at this point in the history
  • Loading branch information
gobeam committed Mar 19, 2022
1 parent 3f61163 commit 84d7c1c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/factories/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,20 @@ const setupRedis = async () => {

const setupTestDatabase = async () => {
const database = `test_${uuid4()}`;
console.log('🚀 ~ file: app.ts ~ line 124 ~ setupTestDatabase ~ database', {
type: dbConfig.type,
host: process.env.DB_HOST || dbConfig.host,
port: parseInt(process.env.DB_PORT) || dbConfig.port,
database: process.env.DB_DATABASE_NAME || dbConfig.database,
username: process.env.DB_USERNAME || dbConfig.username,
password: process.env.DB_PASSWORD || dbConfig.password,
logging: false,
synchronize: false,
migrationsRun: true,
migrationsTableName: 'migrations',
migrations: [__dirname + '/../../src/database/migrations/**/*{.ts,.js}'],
entities: [__dirname + '/../../src/**/*.entity{.ts,.js}']
});
const manager = new ConnectionManager().create({
type: dbConfig.type,
host: process.env.DB_HOST || dbConfig.host,
Expand Down

0 comments on commit 84d7c1c

Please sign in to comment.