testing/cross_backend/testing_server_core.ts view source
BuiltTestingApp import type {BuiltTestingApp} from '@fuzdev/fuz_app/testing/cross_backend/testing_server_core.js'; The assembled app a seam returns.
mount_websocket is invoked by the core after the app exists and the
adapter prepared the WS upgrade closure — the closure mounts the WS
endpoint(s) (e.g. via register_ws_endpoint) and wires any
audit-revocation guards. Omit it for an HTTP-only binary.
app
The assembled Hono app (HTTP routes + RPC already mounted).
type Hono
close
Tear down backend(s) + DB + any rotation on graceful shutdown.
type () => Promise<void>
mount_websocket?
Mount WS endpoint(s) given the runtime-prepared upgrade closure.
type (upgrade_websocket: UpgradeWebSocket) => void