ci: Simplify DB truncate in tests (no-changelog) (#5243)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-01-25 10:02:28 +01:00
committed by GitHub
parent 0c70a40317
commit ac460aa841
6 changed files with 22 additions and 188 deletions

View File

@@ -49,8 +49,7 @@ beforeAll(async () => {
});
beforeEach(async () => {
await testDb.truncate(['SharedWorkflow', 'SharedCredentials']);
await testDb.truncate(['User', 'Workflow', 'Credentials']);
await testDb.truncate(['SharedWorkflow', 'SharedCredentials', 'Workflow', 'Credentials', 'User']);
});
afterAll(async () => {