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>
16 lines
426 B
TypeScript
16 lines
426 B
TypeScript
import { test, expect, describe, afterAll } from 'bun:test'
|
|
import { createPage } from './browser'
|
|
|
|
describe('E2E: Health endpoint', () => {
|
|
test('returns status ok', async () => {
|
|
const { page, cleanup } = await createPage()
|
|
try {
|
|
const body = await page.getResponseBody('/health')
|
|
const data = JSON.parse(body)
|
|
expect(data).toEqual({ status: 'ok' })
|
|
} finally {
|
|
cleanup()
|
|
}
|
|
})
|
|
})
|