backend/knexfile.js (view raw)
1const {
2 POSTGRES_USER = 'postgres',
3 POSTGRES_PASSWORD = 'password',
4 POSTGRES_HOST = 'localhost',
5 POSTGRES_DB = 'strapi_test',
6 POSTGRES_PORT = 5432,
7} = process.env;
8
9module.exports = {
10 test: {
11 client: 'pg',
12 connection: `postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}`,
13 seeds: {
14 directory: __dirname + '/tests/seeds',
15 },
16 },
17};