From 488106b299ba7d16dc139c2e759a12d4e845e376 Mon Sep 17 00:00:00 2001 From: Ryan Mwangi Date: Wed, 6 Nov 2024 15:03:34 +0300 Subject: [PATCH] test: Change the working directory to the test-specific directory --- calendar.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar.test.js b/calendar.test.js index 873e7d5..c7a062d 100644 --- a/calendar.test.js +++ b/calendar.test.js @@ -16,7 +16,7 @@ let server; describe('Calendar Merging API', () => { beforeAll(async () => { // Change the working directory to the test-specific directory - process.chdir(__dirname); + process.chdir(path.join(__dirname, 'temp_test_calendar')); // Start the server server = app.listen(0); // Ensure the test merged calendars directory exists