From 5608a73e3d4dc275d795d3bcadf92bceed130f52 Mon Sep 17 00:00:00 2001 From: Ryan Mwangi Date: Wed, 30 Oct 2024 15:46:20 +0300 Subject: [PATCH] remove directory with rmSync other than depricated rmdirSync --- calendar.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar.test.js b/calendar.test.js index e080ace..44196f8 100644 --- a/calendar.test.js +++ b/calendar.test.js @@ -23,7 +23,7 @@ describe('Calendar Merging API', () => { afterAll( async () => { // Clean up the merged calendars directory after tests if (fs.existsSync(MERGED_CALENDARS_DIR)) { - fs.rmdirSync(MERGED_CALENDARS_DIR, { recursive: true }); + fs.rmSync(MERGED_CALENDARS_DIR, { recursive: true, force: true }); } // Close the server await new Promise(resolve => server.close(resolve));