Skip to content

Commit b6a3cb7

Browse files
Update endpoint testing with Mongoose recipe
`getConnectionString` is deprecated in newer versions, use `getUri` instead.
1 parent 378f605 commit b6a3cb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/recipes/endpoint-testing-with-mongoose.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const mongod = new MongoMemoryServer()
5656

5757
// Create connection to Mongoose before tests are run
5858
test.before(async () => {
59-
const uri = await mongod.getConnectionString();
59+
const uri = await mongod.getUri();
6060
await mongoose.connect(uri, {useMongoClient: true});
6161
});
6262
```

0 commit comments

Comments
 (0)