testing/audit_completeness.ts view source
AuditCompletenessTestOptions Configuration for describe_audit_completeness_tests.
session_options
Session config for cookie-based auth.
SessionOptions<string>create_route_specs
Route spec factory — same one used in production.
(ctx: AppServerContext) => Array<RouteSpec>rpc_endpoints
RPC endpoint specs — the source RpcAction arrays. Required; the admin role_grant flow is RPC-only and the suite hard-fails without it.
Accepts either an array (eager) or a factory
(ctx: AppServerContext) => Array<RpcEndpointSpec> — the factory form
is required when action handlers must close over the per-test
ctx.app_settings / ctx.deps (e.g. exercising app_settings_update).
The factory must return the same endpoint path regardless of ctx —
it is invoked once at setup with a stub ctx for path lookup and again
per-test by create_app_server for live dispatch.
app_options
Optional overrides for AppServerOptions.
db_factories
Database factories to run tests against. Default: pglite only.
Array<DbFactory>