-
Versions
package: mongo-memory-server What is the Problem?I Run Code ExampleThis repo can also be cloned and run to reproduce the problem if using an apple macbook with an m1 chip import mongoose from "mongoose";
import { MongoMemoryServer } from "mongodb-memory-server";
// May require additional time for downloading MongoDB binaries
jasmine.DEFAULT_TIMEOUT_INTERVAL = 600000;
let mongoServer: any;
beforeAll(async () => {
mongoServer = new MongoMemoryServer();
const mongoUri = await mongoServer.getUri();
await mongoose.connect(mongoUri, (err) => {
if (err) console.error(err);
});
});
afterAll(async () => {
await mongoose.disconnect();
await mongoServer.stop();
}); Do you know why it happenes?no |
Beta Was this translation helpful? Give feedback.
Answered by
hasezoey
Mar 10, 2021
Replies: 1 comment 2 replies
-
sorry, if you didnt read the changelog, you wouldnt know - there is no migration guide yet
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
hasezoey
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sorry, if you didnt read the changelog, you wouldnt know - there is no migration guide yet
getUri
(on all classes) is now sync, not an promise anymore, an instance needs to be manually started with.start
or directly with.create