Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
import { describe, expect, it } from "vitest";
import { type PageUpdateStatus, statusLabel } from "./status";
describe("statusLabel", () => {
const labels: Record<PageUpdateStatus, string> = {
investigating: "Investigating",
identified: "Identified",
monitoring: "Monitoring",
resolved: "Resolved",
maintenance: "Planned Maintenance",
};
for (const [status, label] of Object.entries(labels)) {
it(`labels ${status} as "${label}"`, () => {
expect(statusLabel(status as PageUpdateStatus)).toBe(label);
});
}
});