testing/cross_backend/sse_round_trip.ts view source
CrossProcessSseTestOptions import type {CrossProcessSseTestOptions} from '@fuzdev/fuz_app/testing/cross_backend/sse_round_trip.js'; Configuration for .
setup_test
Per-test fixture producer (default_cross_process_setup(handle)). Each
case reads the fresh-per-test keeper's session cookies from
fixture.transport.cookies() to thread onto the stream. The keeper
holds ROLE_ADMIN by default, so it can subscribe to the admin-gated
audit stream and drive admin_session_revoke_all.
type SetupTest
capabilities
Backend capability flags; every case gates on capabilities.sse.
type BackendCapabilities
base_url
Base URL the backend is reachable at (e.g. http://localhost:1178).
type string
sse_path?
SSE stream path on the backend. Defaults to /api/admin/audit/stream.
type string
rpc_path?
RPC endpoint path (e.g. /api/rpc) used by the data-frame and
close-on-revoke cases to fire admin_session_revoke_all /
account_session_revoke_all over the keeper's session channel. When
omitted, those cases are skipped — they depend on the standard account
+ admin actions being mounted on the RPC endpoint.
type string
origin?
Origin for the stream request. Defaults to base_url.
type string