import { describe, expect, it } from "@suaveplan/testing/runner"; import { Hono } from "hono"; import "./context.js"; describe("ContextVariableMap augmentation", () => { it("ContextVariableMap exposes contactRepository slot typed as SurrealContactRepository", { timeout: 5000, }, async () => { const app = new Hono(); app.get("/probe", (c) => { // The compile-time guarantee is what matters; at runtime we // verify `c.set` accepts the value without throwing. c.set("contactRepository", undefined as never); return c.text("ok"); }); const res = await app.request("/probe"); expect(res.status).toBe(200); }); });