From c652dbaeb977c86600cb53716b4ca4a50efb8ef5 Mon Sep 17 00:00:00 2001 From: Ryan Mwangi Date: Wed, 30 Oct 2024 13:58:05 +0300 Subject: [PATCH] Start the server before running the tests and ensure it listens on an available port. --- calendar.test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/calendar.test.js b/calendar.test.js index f4db42c..1b26906 100644 --- a/calendar.test.js +++ b/calendar.test.js @@ -6,6 +6,7 @@ import path from 'path'; import app from './server'; const MERGED_CALENDARS_DIR = 'calendar'; +let server; describe('Calendar Merging API', () => { beforeAll(() => {