Skip to content

Open-source AI coworkers that each get a computer of their own: a browser, files and tools, with every action decided before it happens and recorded after. Bring any AG-UI agent.

528 B
Raw Blame
import { describe, expect, test } from "bun:test";
import { healthOf } from "../src/health";

describe("reading a container's healthcheck from its status line", () => {
  test.each([
    ["Up 3 seconds (health: starting)", "starting"],
    ["Up 5 minutes (healthy)", "healthy"],
    ["Up 1 minute (unhealthy)", "unhealthy"],
    ["Up 2 hours", undefined],
    ["Exited (0) 3 minutes ago", undefined],
    [undefined, undefined],
  ] as const)("%s", (status, expected) => {
    expect(healthOf(status)).toBe(expected);
  });
});