diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d95a9cd79..7839eb94f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -50,7 +50,7 @@ jobs: path: ./server/test/assets - name: Run e2e tests - run: npm run test:e2e -- --forceExit + run: npm run test:e2e -- --forceExit --detectOpenHandles doc-tests: name: Run documentation checks diff --git a/server/test/e2e/formats.e2e-spec.ts b/server/test/e2e/formats.e2e-spec.ts index 1b3bea82c..91e5086d8 100644 --- a/server/test/e2e/formats.e2e-spec.ts +++ b/server/test/e2e/formats.e2e-spec.ts @@ -18,6 +18,8 @@ describe('File format (e2e)', () => { let admin: LoginResponseDto; beforeAll(async () => { + await db.reset(); + jest.useRealTimers(); moduleFixture = await Test.createTestingModule({ diff --git a/server/test/e2e/library2.e2e-spec.ts b/server/test/e2e/library2.e2e-spec.ts index 3151b27dc..6b44196a4 100644 --- a/server/test/e2e/library2.e2e-spec.ts +++ b/server/test/e2e/library2.e2e-spec.ts @@ -18,6 +18,8 @@ describe('Library queue e2e', () => { let admin: LoginResponseDto; beforeAll(async () => { + await db.reset(); + jest.useRealTimers(); moduleFixture = await Test.createTestingModule({