import { test, expect } from "./_helpers"; /** * No-infra smoke check: /api/v1/health must always answer and report the * service name. This is the one spec you can run on a checkout that has no * PocketBase / DB set up. */ test("GET /api/v1/health returns ok", async ({ request }) => { const res = await request.get("/api/v1/health"); expect(res.status()).toBe(200); const body = await res.json(); expect(body.ok).toBe(true); expect(body.service).toBe("wfdash-api"); expect(typeof body.timestamp).toBe("string"); expect(Number.isNaN(new Date(body.timestamp).getTime())).toBe(false); });