From 6416685de86247a4aa36953978d5f35dc33e0ddd Mon Sep 17 00:00:00 2001 From: Ryan Mwangi Date: Tue, 29 Oct 2024 21:32:00 +0300 Subject: [PATCH] Clean up the merged calendars directory after tests --- calendar.test.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/calendar.test.js b/calendar.test.js index 1497ab4..507b654 100644 --- a/calendar.test.js +++ b/calendar.test.js @@ -13,5 +13,9 @@ describe('Calendar Merging API', () => { fs.mkdirSync(MERGED_CALENDARS_DIR); } }); + afterAll(() => { + // Clean up the merged calendars directory after tests + fs.rmdirSync(MERGED_CALENDARS_DIR, { recursive: true }); + }); }); \ No newline at end of file