Loading homepage
Input: const r = new TestRunner(); r.test("ok", () => 1).test("bad", () => { throw "oops"; }).skip("later"); await r.run(); Output: { total: 3, passed: 1, failed: 1, skipped: 1, results: [{ name: "ok", status: "passed" }, { name: "bad", status: "failed", error: "oops" }, { name: "later", status: "skipped" }] }
Input: await new TestRunner().run(); Output: { total: 0, passed: 0, failed: 0, skipped: 0, results: [] }
Implement the exported API in index.js or index.ts. Tests cover the contract and edge cases below.