check if the merged calendars directory exists befor cleaning it up after tests
This commit is contained in:
parent
a61ae491fa
commit
ab02271245
|
@ -22,7 +22,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
|
||||||
fs.rmdirSync(MERGED_CALENDARS_DIR, { recursive: true });
|
if (fs.existsSync(MERGED_CALENDARS_DIR)) {
|
||||||
|
fs.rmdirSync(MERGED_CALENDARS_DIR, { recursive: true });
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
test('Merge date-based calendar', async () => {
|
test('Merge date-based calendar', async () => {
|
||||||
|
|
Loading…
Reference in New Issue