From ed8e3d214c17b2777f0c65768410a284e79f27cd Mon Sep 17 00:00:00 2001 From: Ryan Mwangi Date: Wed, 30 Oct 2024 14:00:02 +0300 Subject: [PATCH] create jest config file --- calendar.test.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/calendar.test.js b/calendar.test.js index 1b26906..568244d 100644 --- a/calendar.test.js +++ b/calendar.test.js @@ -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);