MediaE2E: Add app.close() to afterAll

This terminates the app after all test have finished.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2021-03-31 22:36:14 +02:00
parent 25bdbf647a
commit d586b84d8b
2 changed files with 4 additions and 2 deletions

View file

@ -133,6 +133,7 @@ describe('Media', () => {
afterAll(async () => {
// Delete the upload folder
await fs.rmdir(uploadPath);
await fs.rmdir(uploadPath, { recursive: true });
await app.close();
});
});

View file

@ -142,6 +142,7 @@ describe('Media', () => {
afterAll(async () => {
// Delete the upload folder
await fs.rmdir(uploadPath);
await fs.rmdir(uploadPath, { recursive: true });
await app.close();
});
});