feat(api): Hono backend skeleton with /health endpoint and test

This commit is contained in:
Bas van Rossem
2026-06-17 13:35:28 +02:00
parent f83c9a6384
commit 62c8597068
10 changed files with 1323 additions and 9 deletions

View File

@@ -0,0 +1,11 @@
import { describe, it, expect } from 'vitest';
import { createApp } from '../src/app';
describe('GET /health', () => {
it('returns { status: "ok" }', async () => {
const app = createApp();
const res = await app.request('/health');
expect(res.status).toBe(200);
expect(await res.json()).toEqual({ status: 'ok' });
});
});