testing/cross_backend/setup.ts view source
BootstrappedBackendHandle Cross-process backend handle enriched with the bootstrapped keeper's
captured credentials. Consumers compose this in vitest's
globalSetup:
const handle = await spawn_backend(config);
const keeper_transport = create_fetch_transport({base_url: config.base_url});
const keeper = await bootstrap({transport: keeper_transport, config});
const bootstrapped: BootstrappedBackendHandle = {
...handle,
keeper_transport,
keeper_account: keeper.account,
keeper_actor: keeper.actor,
keeper_cookies: keeper.cookies,
};default_cross_process_setup(bootstrapped, options) reads from this
shape — the per-test fixture closes over the keeper credentials so
cross-process tests can drive admin-RPC / audit-observer flows
against the long-lived bootstrapped admin alongside the per-test
signup+login account.
inheritance
keeper_transport
Transport carrying the keeper session cookie + cookie jar.
keeper_account
Keeper account JSON captured from POST /bootstrap.
{readonly id: Uuid; readonly username: string}keeper_actor
Keeper actor JSON captured from POST /bootstrap.
{readonly id: Uuid}keeper_cookies
Raw keeper Set-Cookie values — thread into ws_transport for keeper-authenticated WS upgrades.
ReadonlyArray<string>