π Db connection woes
astroash opened this issue Β· comments
Lines 7 to 13 in 867df4d
When you are running tests, you do not need to worry if there is a DB_URL
. This could be added to a else statement on the previous conditional eg
if (process.env.NODE_ENV === "test") {
//set the DB_URL
} else if (!DB_URL) {
// throw an error if we dont have a url
};
This will avoid you from having to create two dbs in travs ππ½