testing/audit_completeness.ts view source
AuditCompletenessTestOptions import type {AuditCompletenessTestOptions} from '@fuzdev/fuz_app/testing/audit_completeness.js'; Configuration for describe_audit_completeness_tests.
setup_test
Per-test fixture-producing function. The audit suite calls this
in every test() body — auth_integration_truncate_tables clears
the audit log between tests, so each test re-bootstraps the
keeper and the observer admin against a fresh table.
type (): Promise<TestFixtureBase>
Promise<TestFixtureBase>surface_source
App surface (with route specs). Constructed in TS by the consumer; same shape for in-process and cross-process tests. The audit suite is Tier 2 today (stays in-process per the cross-backend-integration design), but takes the same surface shape as Tier 1 suites for options uniformity.
type AppSurfaceSpec
session_options
Session config — needed for factory-form rpc_endpoints resolution.
type SessionOptions<string>
rpc_endpoints
RPC endpoint specs — required. The admin role_grant flow is RPC-only and the suite hard-fails without it.