/** * The Worker's entry module exports only what workerd can serve: functions, classes and the default handler. A plain * value exported there stops the runtime from starting ("Incorrect type for map entry ..."), so wrangler dev and a * deploy both fail. That happened twice on 27 Nov 2026 (NOBODY_OBJECT, SIGN_IN_BODY_MAX); keep such a value unexported, * or in another module. */ import { expect, it } from "vitest"; import * as entry from "../src/index.ts"; it("exports only functions, classes and the default handler from the entry module", () => { const plain = Object.entries(entry).filter(([name, value]) => name !== "default" && typeof value !== "function"); expect(plain.map(([name]) => name)).toEqual([]); });