only reset db if needed
This commit is contained in:
parent
bb947b07ce
commit
702520af4e
3 changed files with 5 additions and 1 deletions
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
@ -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
|
||||
|
|
|
@ -18,6 +18,8 @@ describe('File format (e2e)', () => {
|
|||
let admin: LoginResponseDto;
|
||||
|
||||
beforeAll(async () => {
|
||||
await db.reset();
|
||||
|
||||
jest.useRealTimers();
|
||||
|
||||
moduleFixture = await Test.createTestingModule({
|
||||
|
|
|
@ -18,6 +18,8 @@ describe('Library queue e2e', () => {
|
|||
let admin: LoginResponseDto;
|
||||
|
||||
beforeAll(async () => {
|
||||
await db.reset();
|
||||
|
||||
jest.useRealTimers();
|
||||
|
||||
moduleFixture = await Test.createTestingModule({
|
||||
|
|
Loading…
Reference in a new issue