chore: fix lingering jest and next-server processes in monorepo (#8320)

This commit is contained in:
Alessio Gravili
2024-09-19 21:15:20 -04:00
committed by GitHub
parent faaa1188f4
commit 79c117c664
3 changed files with 19 additions and 3 deletions

View 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')
}
}