testing/cross_backend/account_lifecycle.ts

Cross-backend parity suite for the account-lifecycle admin verbs: account_delete (soft), account_undelete (reactivation), and account_purge (keeper hard-delete), plus the keeper guard.

Like the cell suites, these verbs can't ride the generic describe_rpc_round_trip_tests: they're stateful and destructive (a generic round-trip would tombstone the bootstrapped keeper). They live-mount on every spine's RPC path but stay off the declared surface, so this dedicated suite is their cross-impl validator. Every success result is parsed against the verb's declared Zod output schema, so a TS↔Rust envelope drift fails the assertion.

$lib-free by contract (relative specifiers only) so it can be imported from the spawnable cross-process test files.

view source

Declarations
#

2 declarations

AccountLifecycleCrossTestOptions
#

testing/cross_backend/account_lifecycle.ts view source

RpcPathCrossSuiteOptions import type {AccountLifecycleCrossTestOptions} from '@fuzdev/fuz_app/testing/cross_backend/account_lifecycle.js';

Options for the account-lifecycle parity suite. The standard RPC-dispatched cross-suite shape (setup_test / capabilities / rpc_path); aliases RpcPathCrossSuiteOptions rather than duplicating.

rpc_path?

RPC endpoint path the methods are mounted on. Default /api/rpc.

type string

readonly

setup_test

Per-test fixture-producing function (fresh keeper + db per call).

type (): Promise<TestFixtureBase>

readonly
returns Promise<TestFixtureBase>

capabilities

Backend capability declarations — each suite gates on its own flag.

type BackendCapabilities

readonly

describe_account_lifecycle_cross_tests
#

Depends on
#