chore: update port to 4000 in tests and compose

This commit is contained in:
asepharyana
2026-08-02 14:30:58 +07:00
parent 66fb92e5af
commit ad7747bfd4
6 changed files with 26 additions and 26 deletions
+2 -2
View File
@@ -19,7 +19,7 @@ describe('Health Route Handler', () => {
});
it('should return status 200 and ok when DB is healthy', async () => {
const req = new Request('http://localhost:3000/health');
const req = new Request('http://localhost:4000/health');
const res = await handleHealth(req);
expect(res.status).toBe(200);
@@ -30,7 +30,7 @@ describe('Health Route Handler', () => {
it('should return status 500 and error details when DB health check fails', async () => {
mockExecute.mockImplementationOnce(() => Promise.reject(new Error('DB Connection Failed')));
const req = new Request('http://localhost:3000/health');
const req = new Request('http://localhost:4000/health');
const res = await handleHealth(req);
expect(res.status).toBe(500);