Skip to content

Commit

Permalink
Fix MongoDB connection settings
Browse files Browse the repository at this point in the history
Should fix failing tests in CircleCI
  • Loading branch information
lukePeavey committed Dec 17, 2019
1 parent 6992144 commit aa00958
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion __tests__/integration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ const { MONGODB_URI } = process.env

beforeAll(async () => {
try {
await mongoose.connect(MONGODB_URI, { useNewUrlParser: true })
await mongoose.connect(MONGODB_URI, {
useUnifiedTopology: true,
useNewUrlParser: true,
useCreateIndex: true,
})
} catch (error) {
process.exit(1)
}
Expand Down

0 comments on commit aa00958

Please sign in to comment.