Skip to content

Commit f922446

Browse files
committed
Using new mongoose url parser
1 parent d6a9a4e commit f922446

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ beforeAll(async () => {
1515
const connectionString = process.env.DATABASE_URL;
1616
if (!connectionString) throw new Error('Environment variable "DATABASE_URL" must be a valid connection string');
1717

18-
await mongoose.connect(process.env.DATABASE_URL);
18+
await mongoose.connect(process.env.DATABASE_URL, { useNewUrlParser: true });
1919
const db = mongoose.connections[0].db;
2020
Collection = db.collection('schemas');
2121

0 commit comments

Comments
 (0)