defmodule ServerWeb.HealthControllerTest do use ServerWeb.ConnCase, async: true test "GET /health returns 200 with status=ok", %{conn: conn} do conn = get(conn, ~p"/health") body = json_response(conn, 200) assert body["status"] == "ok" assert body["db"] == "ok" assert is_binary(body["version"]) end end