1
0
Fork 0

create jest config file

This commit is contained in:
Ryan Mwangi 2024-10-30 14:00:02 +03:00
parent c652dbaeb9
commit ed8e3d214c
1 changed files with 5 additions and 1 deletions

View File

@ -9,7 +9,11 @@ const MERGED_CALENDARS_DIR = 'calendar';
let server;
describe('Calendar Merging API', () => {
beforeAll(() => {
beforeAll(async () => {
// Start the server
server = app.listen(0, () => {
console.log(`Server started on port 3000`);
});
// Ensure the merged calendars directory exists
if (!fs.existsSync(MERGED_CALENDARS_DIR)) {
fs.mkdirSync(MERGED_CALENDARS_DIR);