testing/cross_backend/spawn_backend.ts view source
BackendHandle import type {BackendHandle} from '@fuzdev/fuz_app/testing/cross_backend/spawn_backend.js'; Handle returned by spawn_backend — passed to per-test setup helpers.
config
The config used to spawn this backend. Carried for diagnostic + downstream access.
type BackendConfig
child
Child process reference — exposed for diagnostic logging only.
type ChildProcess
daemon_token
Deterministic daemon token captured from
config.bootstrap.daemon_token_path after the binary booted.
default_cross_process_setup builds keeper-daemon-token headers
from this for _testing_reset calls.
type string
teardown
SIGTERM the child's process group, drain stderr, await exit. Idempotent — calls after the first are no-ops.
type () => Promise<void>