diff --git a/apps/server/src/tests/auth.spec.ts b/apps/server/src/tests/auth.spec.ts index ff18272978..f8981c1407 100644 --- a/apps/server/src/tests/auth.spec.ts +++ b/apps/server/src/tests/auth.spec.ts @@ -19,6 +19,7 @@ test.beforeEach(async () => { const client = new PrismaClient(); await client.$connect(); await client.user.deleteMany({}); + await client.$disconnect(); }); test.beforeEach(async () => { diff --git a/apps/server/src/tests/doc.spec.ts b/apps/server/src/tests/doc.spec.ts index 39826f7e65..10b8960c06 100644 --- a/apps/server/src/tests/doc.spec.ts +++ b/apps/server/src/tests/doc.spec.ts @@ -42,6 +42,7 @@ test.beforeEach(async () => { test.afterEach(async () => { await app.close(); + await m.close(); timer.restore(); }); diff --git a/apps/server/src/tests/session.spec.ts b/apps/server/src/tests/session.spec.ts index 26bbbd0376..cc7171c76a 100644 --- a/apps/server/src/tests/session.spec.ts +++ b/apps/server/src/tests/session.spec.ts @@ -15,6 +15,7 @@ test.beforeEach(async () => { const client = new PrismaClient(); await client.$connect(); await client.user.deleteMany({}); + await client.$disconnect(); }); test.beforeEach(async () => {