diff --git a/__tests__/e2e/email-submission.spec.ts b/__tests__/e2e/email-submission.spec.ts index 545dce5b78..8fcc03bfbe 100644 --- a/__tests__/e2e/email-submission.spec.ts +++ b/__tests__/e2e/email-submission.spec.ts @@ -48,7 +48,7 @@ test.describe('Email form submission', () => { }) test.afterAll(async () => { // Clean up db - await db.dropDatabase() + await db.dropCollection(Form.collection.name) await db.close() }) diff --git a/__tests__/e2e/encrypt-submission.spec.ts b/__tests__/e2e/encrypt-submission.spec.ts index 9e33306954..6635ffa86f 100644 --- a/__tests__/e2e/encrypt-submission.spec.ts +++ b/__tests__/e2e/encrypt-submission.spec.ts @@ -54,7 +54,7 @@ test.describe('Storage form submission', () => { }) test.afterAll(async () => { // Clean up db - await db.dropDatabase() + await db.dropCollection(Form.collection.name) await db.close() })