import { describe, expect, it } from "vitest";

import { createApp } from "../../apps/api/src/app.js";

describe("Fastify skeleton", () => {
  it("becomes ready with only the Supervisor health exception", async () => {
    const app = await createApp();
    await app.ready();
    expect(app.printRoutes()).toContain("healthz");
    expect(app.printRoutes()).not.toContain("api/v1/health");
    await app.close();
  });
});
