Skip to content

Commit

Permalink
fix: fix mongo deprecation warnings
Browse files Browse the repository at this point in the history
Removed deprecated `useNewUrlParser` and `useUnifiedTopology` options passed to
the mongo client
  • Loading branch information
danielpza committed Aug 8, 2024
1 parent 1379f3d commit 95fe353
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/mmsTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,8 @@ export const mmsTest = test.extend<{
mongoClient: async ({}, use) => {
// @ts-expect-error
const uri = inject("MONGO_URI");
const client = new MongoClient(uri, {
// @ts-expect-error
useNewUrlParser: true,
useUnifiedTopology: true,
});

const client = new MongoClient(uri);
await client.connect();
await use(client);
await client.close();
Expand Down

0 comments on commit 95fe353

Please # to comment.