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 describe_cross_process_sse_tests.
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 (): Promise<TestFixture>
Promise<TestFixture>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
max_per_scope?
The backend's per-session audit-stream cap, which the cap case opens one
stream past. Defaults to AUDIT_LOG_SSE_MAX_PER_SCOPE, the cap both
spines apply unless overridden; null (a backend with the cap disabled)
skips the case.
type number | null
logout_path?
REST logout route path, for the logout close case. Default /api/account/logout.
type string
password_path?
REST password-change route path, for its close case. Default /api/account/password.
type string