only reset db if needed

This commit is contained in:
Jonathan Jogenfors 2023-09-23 22:47:38 +02:00
parent bb947b07ce
commit 702520af4e
3 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -18,6 +18,8 @@ describe('File format (e2e)', () => {
let admin: LoginResponseDto;
beforeAll(async () => {
await db.reset();
jest.useRealTimers();
moduleFixture = await Test.createTestingModule({

View file

@ -18,6 +18,8 @@ describe('Library queue e2e', () => {
let admin: LoginResponseDto;
beforeAll(async () => {
await db.reset();
jest.useRealTimers();
moduleFixture = await Test.createTestingModule({