Files
monitoring-app/tests/integration/health.test.ts
bipproduction 08a1054e3c Initial commit: full-stack Bun + Elysia + React template
Elysia.js API with session-based auth (email/password + Google OAuth),
role system (USER/ADMIN/SUPER_ADMIN), Prisma + PostgreSQL, React 19
with Mantine UI, TanStack Router, dark theme, and comprehensive test
suite (unit, integration, E2E with Lightpanda).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 10:12:19 +08:00

14 lines
397 B
TypeScript

import { test, expect, describe } from 'bun:test'
import { createTestApp } from '../helpers'
const app = createTestApp()
describe('GET /health', () => {
test('returns 200 with status ok', async () => {
const res = await app.handle(new Request('http://localhost/health'))
expect(res.status).toBe(200)
const body = await res.json()
expect(body).toEqual({ status: 'ok' })
})
})