interface NodeServeHost

Minimal interface covering the @hono/node-server serve() operation. Inject this interface to test the adapter without a real Node server.

Methods

serve(options: { fetch: (request: Request) => Response | Promise<Response>; port: number; hostname?: string; overrideGlobalObjects?: boolean; }): Promise<NodeServer>

Starts an HTTP server.

Usage

import { type NodeServeHost } from "runtime/src/index.ts";