// src/routes/healthcheck/test.js import request from 'supertest' import app from '../../app' describe('Health Check Endpoint', () => { it('should respond with status up', async () => { const response = await request(app).get('/healthcheck') expect(response.status).toBe(200) expect(response.body).toEqual({ status: 'UP' }) }) it('should return a JSON response', async () => { const response = await request(app).get('/healthcheck') expect(response.type).toBe('application/json') }) })