Files
tyx_AI_xhs/tests/api/app.test.ts
T

14 lines
424 B
TypeScript

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();
});
});