13 lines
406 B
TypeScript
13 lines
406 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { GET } from "./route";
|
|
|
|
describe("health endpoint", () => {
|
|
it("reports process readiness without requiring external services", async () => {
|
|
const response = GET();
|
|
|
|
expect(response.status).toBe(200);
|
|
expect(response.headers.get("cache-control")).toBe("no-store");
|
|
expect(await response.json()).toEqual({ status: "ok" });
|
|
});
|
|
});
|