made some basic structure changes and made some tests too
Test Workflow / test-and-lint (pull_request) Failing after 23s

This commit is contained in:
2026-05-15 22:32:39 -07:00
parent fa6d6a97ba
commit 6bac3e4e74
18 changed files with 139 additions and 101 deletions
+19
View File
@@ -0,0 +1,19 @@
// 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')
})
})