feat: harden bootstrap and add tests

This commit is contained in:
2026-06-28 16:43:03 -05:00
parent 01ea9e391d
commit 991e73fcff
39 changed files with 3399 additions and 459 deletions
+14
View File
@@ -0,0 +1,14 @@
import { describe, expect, it } from 'vitest';
import { GET } from '@/app/api/health/route';
describe('/api/health', () => {
it('returns a fast healthy response', async () => {
const response = await GET();
const body = await response.json();
expect(response.status).toBe(200);
expect(body.ok).toBe(true);
expect(body.status).toBe('healthy');
expect(response.headers.get('cache-control')).toContain('no-store');
});
});