diff --git a/test/private-api/notes.e2e-spec.ts b/test/private-api/notes.e2e-spec.ts index 7e5806755..1e68c0d30 100644 --- a/test/private-api/notes.e2e-spec.ts +++ b/test/private-api/notes.e2e-spec.ts @@ -256,7 +256,7 @@ describe('Notes', () => { // delete the file afterwards await fs.unlink(join(uploadPath, fileName)); } - await fs.rmdir(uploadPath); + await fs.rmdir(uploadPath, { recursive: true }); }); it('fails, when note does not exist', async () => { await request(app.getHttpServer()) diff --git a/test/public-api/me.e2e-spec.ts b/test/public-api/me.e2e-spec.ts index 5b13f4b52..76a3161c9 100644 --- a/test/public-api/me.e2e-spec.ts +++ b/test/public-api/me.e2e-spec.ts @@ -270,7 +270,7 @@ describe('Me', () => { // delete the file afterwards await fs.unlink(join(uploadPath, fileName)); } - await fs.rmdir(uploadPath); + await fs.rmdir(uploadPath, { recursive: true }); }); afterAll(async () => { diff --git a/test/public-api/notes.e2e-spec.ts b/test/public-api/notes.e2e-spec.ts index b86d187fd..b7f2e2e2c 100644 --- a/test/public-api/notes.e2e-spec.ts +++ b/test/public-api/notes.e2e-spec.ts @@ -362,7 +362,7 @@ describe('Notes', () => { // delete the file afterwards await fs.unlink(join(uploadPath, fileName)); } - await fs.rmdir(uploadPath); + await fs.rmdir(uploadPath, { recursive: true }); }); it('fails, when note does not exist', async () => { await request(app.getHttpServer())