We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
open()
1 parent 1769d0a commit 35a9a70Copy full SHA for 35a9a70
src/__mocks__/mongooseCommon.js
@@ -14,7 +14,7 @@ mongoose.connect = async () => {
14
15
const mongoUri = await mongoServer.getConnectionString();
16
17
- originalConnect.bind(mongoose)(mongoUri);
+ originalConnect.bind(mongoose)(mongoUri, { useMongoClient: true });
18
19
mongoose.connection.on('error', e => {
20
if (e.message.code === 'ETIMEDOUT') {
0 commit comments