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

13 lines
348 B
TypeScript

import { describe, expect, it } from "vitest";
import { createApp } from "../../apps/api/src/app.js";
describe("Fastify skeleton", () => {
it("becomes ready without adding a product route", async () => {
const app = createApp();
await app.ready();
expect(app.printRoutes()).not.toContain("health");
await app.close();
});
});