misc.spec.ts 353 B

123456789101112131415
  1. import { baseUrl, defaultFetchOpts } from "./constants";
  2. describe("Misc", () => {
  3. //#region health check
  4. it("Health check", async () => {
  5. const res = await fetch(`${baseUrl}/health`, {
  6. ...defaultFetchOpts,
  7. method: "HEAD",
  8. });
  9. expect(res.status).toBe(200);
  10. expect(res.headers.get("api-info")).not.toBeNull();
  11. });
  12. });