diff --git a/calendar.test.js b/calendar.test.js index 16e57f2..34f44cb 100644 --- a/calendar.test.js +++ b/calendar.test.js @@ -23,10 +23,9 @@ describe('Calendar Merging API', () => { afterAll(async () => { // Clean up the merged calendars directory after tests - if (fs.existsSync(MERGED_CALENDARS_DIR)) { - fs.rmSync(MERGED_CALENDARS_DIR, { recursive: true, force: true }); - } - // Close the server + fs.rmSync(TEST_MERGED_CALENDARS_DIR, { recursive: true, force: true }); + + // Close the server await new Promise(resolve => server.close(resolve)); });