Ensure the merged calendars directory exists

This commit is contained in:
Ryan Mwangi 2024-10-29 21:29:24 +03:00
parent 3ddd563eac
commit 22f0a05bce
1 changed files with 11 additions and 1 deletions

View File

@ -5,3 +5,13 @@ import fs from 'fs';
import path from 'path';
const MERGED_CALENDARS_DIR = 'calendar';
describe('Calendar Merging API', () => {
beforeAll(() => {
// Ensure the merged calendars directory exists
if (!fs.existsSync(MERGED_CALENDARS_DIR)) {
fs.mkdirSync(MERGED_CALENDARS_DIR);
}
});
});