syntaxai/tdd.md · main · src / b51_render_reports.test.ts
// Sibling test for c51_render_reports.ts (Layer 1, render). Asserts
// the canonical exports remain function-typed and produce non-empty
// strings for minimal inputs — the end-to-end shape is exercised by
// the /reports/* routes' e2e tests; this file pins the API surface.
import { describe, test, expect } from "bun:test";
import {
reportsLandingMd,
execSummaryMd,
agentDrilldownMd,
testsOverviewMd,
} from "./b51_render_reports.ts";
describe("c51_render_reports — export shape", () => {
test("reportsLandingMd is a function", () => {
expect(typeof reportsLandingMd).toBe("function");
});
test("execSummaryMd is a function", () => {
expect(typeof execSummaryMd).toBe("function");
});
test("agentDrilldownMd is a function", () => {
expect(typeof agentDrilldownMd).toBe("function");
});
test("testsOverviewMd is a function", () => {
expect(typeof testsOverviewMd).toBe("function");
});
});