diff --git a/packages/create-bison-app/template/_.env.test.ejs b/packages/create-bison-app/template/_.env.test.ejs index b1206feb..bfa73989 100644 --- a/packages/create-bison-app/template/_.env.test.ejs +++ b/packages/create-bison-app/template/_.env.test.ejs @@ -1,3 +1,3 @@ # ENV vars here override .env when running tests -DATABASE_URL="postgresql://<%= db.dev.user %><%= db.dev.password %>@<%= db.dev.host %>:<%= db.dev.port %>/<%= db.test.name %>?schema=public" -APP_SECRET=foo \ No newline at end of file +DATABASE_URL="postgresql://<%= db.dev.user %><% if (db.dev.password) { %>:<%= db.dev.password %><% } %>@<%= db.dev.host %>:<%= db.dev.port %>/<%= db.test.name %>?schema=public" +APP_SECRET=foo