Skip to content

State control

await replica.state.reset();
await replica.state.engine.create('customer', { name: 'Ada' });

The engine exposes the same API surface as the runtime: reads, writes, transactions, and snapshots. Your test setup can use the same state model as the replica.