testing/cross_backend/testing_server_bun.ts

Bun runtime adapter for spawnable cross-process test server binaries.

Binds Bun.serve and @hono/bun's module-level upgradeWebSocket + websocket handler. The shared testing/cross_backend/testing_server_core.ts owns the rest. Sibling to testing/cross_backend/testing_server_node.ts — together the two isolate the JS-runtime axis (Node V8 / Bun JSC) on identical TS surfaces, and the Rust spine binary covers the cross-language axis.

Needs the optional @hono/bun peer dep (the Bun counterpart to Node's @hono/node-server + @hono/node-ws); Bun.serve is built in. RuntimeDeps reuse create_node_runtime — Bun implements the node:fs / node:process surface RuntimeDeps + testing/daemon_info.ts touch.

Bun.serve is declared locally so this module typechecks under fuz_app's Node-based config without @types/bun. It is only ever *run* under Bun.

view source

Declarations
#

create_bun_testing_adapter
#

Depends on
#