blob: 6d2dda96fa59d95b13aefe656f5b52a9f3015ba9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import { describe, expect, it } from "vitest";
import { app } from "./index.js";
describe("Hono app", () => {
describe("GET /api/health", () => {
it("returns ok status", async () => {
const res = await app.request("/api/health");
expect(res.status).toBe(200);
expect(await res.json()).toEqual({ status: "ok" });
});
});
});
|