From 8c0de14d5f09556acb4d2bd9c835f442007bf919 Mon Sep 17 00:00:00 2001 From: Ryan Mwangi Date: Mon, 11 Nov 2024 20:14:49 +0300 Subject: [PATCH] refactor: move server.js and app.js into src directory --- app.js => src/app.js | 0 server.js => src/server.js | 2 +- test/calendar.test.js | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename app.js => src/app.js (100%) rename server.js => src/server.js (87%) diff --git a/app.js b/src/app.js similarity index 100% rename from app.js rename to src/app.js diff --git a/server.js b/src/server.js similarity index 87% rename from server.js rename to src/server.js index 65130ee..851fcc2 100644 --- a/server.js +++ b/src/server.js @@ -1,6 +1,6 @@ import express from 'express'; import path from 'path'; -import routes from './src/routes.js'; +import routes from './routes.js'; const app = express(); app.use(express.json()); diff --git a/test/calendar.test.js b/test/calendar.test.js index 2b6303e..ba38d1d 100644 --- a/test/calendar.test.js +++ b/test/calendar.test.js @@ -10,7 +10,7 @@ const EXPECTED_OUTPUTS_DIR = path.join(__dirname, 'expected_outputs'); let server; process.chdir(__dirname) console.log(process.cwd()); -const app = require('../server').default; +const app = require('../src/server').default; describe('Calendar Merging API', () => { beforeAll(async () => {