Skip to content

Commit

Permalink
revert mongodb-memory-server because it's breaking tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sspenst committed Dec 9, 2023
1 parent 488e17c commit 31d1ffa
Show file tree
Hide file tree
Showing 4 changed files with 160 additions and 129 deletions.
5 changes: 4 additions & 1 deletion lib/dbConnect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ export async function dbDisconnect() {
}

if (cached.mongoMemoryServer) {
await cached.mongoMemoryServer.stop();
await cached.mongoMemoryServer.stop({
doCleanup: true,
force: true,
});
}

clearAllSchedules();
Expand Down
Loading

0 comments on commit 31d1ffa

Please sign in to comment.