diff options
Diffstat (limited to 'pkgs/server')
| -rw-r--r-- | pkgs/server/src/index.test.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/server/src/index.test.ts b/pkgs/server/src/index.test.ts new file mode 100644 index 0000000..216e965 --- /dev/null +++ b/pkgs/server/src/index.test.ts @@ -0,0 +1,12 @@ +import { describe, expect, it } from "vitest"; +import { app } from "./index"; + +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" }); + }); + }); +}); |
