chore: fix lingering jest and next-server processes in monorepo (#8320)
This commit is contained in:
8
test/helpers/stopMemoryDB.ts
Normal file
8
test/helpers/stopMemoryDB.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
// eslint-disable-next-line no-restricted-exports
|
||||
export default async () => {
|
||||
if (global._mongoMemoryServer) {
|
||||
console.log('Stopping memorydb...')
|
||||
await global._mongoMemoryServer.stop()
|
||||
console.log('Stopped memorydb')
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user