// config.js

if (process.env.NODE_ENV === 'production') {
  module.exports.databaseUrl = process.env.DATABASE_URL;
} else {
  module.exports.databaseUrl = 'postgres://127.0.0.1:5432/partyof4';
}

@@ -109,16 +109,135 @@
 SE_URL;%0A
+%7D else if (process.env.NODE_ENV === 'test') %7B%0A  module.exports.databaseUrl = 'postgres://127.0.0.1:5432/partyof4test';%0A
 %7D else %7B

update config.js to handle test environment