TestRunner.ts
TestRunner.ts overview
Section titled “TestRunner.ts overview”The TestRunner module assembles the smallest cluster runtime useful in
tests: Sharding backed by in-memory message storage, in-memory runner
storage, no-op runner transport, and always-healthy runner checks. It lets
code that depends on cluster services exercise registration, shard
coordination, and mailbox persistence without starting RPC servers or
external databases.
Since v4.0.0
Exports Grouped by Category
Section titled “Exports Grouped by Category”layers
Section titled “layers”Layer that provides an in-memory cluster for testing.
Details
MessageStorage and RunnerStorage are backed by in-memory drivers.
Signature
declare const layer: Layer.Layer< Sharding.Sharding | Runners.Runners | MessageStorage.MessageStorage | MessageStorage.MemoryDriver, never, never>Since v4.0.0