feat: creates support for swaps on the storefront (#355)

This commit is contained in:
Sebastian Rindom
2021-08-30 12:14:56 +02:00
committed by GitHub
parent bd1e115696
commit ae82cfc70a
20 changed files with 2122 additions and 1170 deletions

View File

@@ -1,5 +1,16 @@
const { dropDatabase } = require("pg-god");
const path = require('path');
const {dropDatabase} = require('pg-god');
require('dotenv').config({path: path.join(__dirname, '.env')});
const DB_USERNAME = process.env.DB_USERNAME || 'postgres';
const DB_PASSWORD = process.env.DB_PASSWORD || '';
const pgGodCredentials = {
user: DB_USERNAME,
password: DB_PASSWORD,
};
afterAll(() => {
dropDatabase({ databaseName: "medusa-integration" });
dropDatabase({databaseName: 'medusa-integration'}, pgGodCredentials);
});