testing/cross_backend/spawn_backend.ts view source
BackendHandle Handle returned by spawn_backend — passed to per-test setup helpers.
config
The config used to spawn this backend. Carried for diagnostic + downstream access.
child
Child process reference — exposed for diagnostic logging only.
ChildProcessdaemon_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.
stringteardown
SIGTERM the child's process group, drain stderr, await exit. Idempotent — calls after the first are no-ops.
() => Promise<void>