import { describe, expect, it } from 'vitest'; import { api } from '../helpers/api'; // Proves the full loop: PGlite -> migrations -> build -> server -> fetch. describe('health', () => { it('reports a working database connection', async () => { const res = await api.get('/api/health'); expect(res.status).toBe(200); expect(await res.json()).toEqual({ ok: true, db: true }); }); });