import { describe, expect, it } from "vitest"; import { buildApp } from "../src/app"; describe("health", () => { it("answers on /api/health", async () => { const app = await buildApp({ auth: false }); const res = await app.inject({ method: "GET", url: "/api/health" }); expect(res.statusCode).toBe(200); expect(res.json()).toEqual({ ok: true }); await app.close(); }); });