1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-11-01 19:07:38 +01:00
unleash.unleash/src/test/e2e/helpers/database-config.ts
2021-09-14 19:30:11 +02:00

9 lines
248 B
TypeScript

import parseDbUrl from 'parse-database-url';
export const getDbConfig = (): object => {
const url =
process.env.TEST_DATABASE_URL ||
'postgres://unleash_user:passord@localhost:5432/unleash_test';
return parseDbUrl(url);
};