test (calendar.test.js): clean up TEST_MERGED_CALENDARS_DIR
This commit is contained in:
parent
0fc02c579d
commit
e44f8bf474
|
@ -23,10 +23,9 @@ describe('Calendar Merging API', () => {
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
// Clean up the merged calendars directory after tests
|
// Clean up the merged calendars directory after tests
|
||||||
if (fs.existsSync(MERGED_CALENDARS_DIR)) {
|
fs.rmSync(TEST_MERGED_CALENDARS_DIR, { recursive: true, force: true });
|
||||||
fs.rmSync(MERGED_CALENDARS_DIR, { recursive: true, force: true });
|
|
||||||
}
|
// Close the server
|
||||||
// Close the server
|
|
||||||
await new Promise(resolve => server.close(resolve));
|
await new Promise(resolve => server.close(resolve));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue