@thescaffold/chat-testing
v0.2.0
Published
Test fakes, builders, harnesses, and contract test suites for X Chat
Readme
@thescaffold/chat-testing
Test fakes, builders, harnesses, and contract test suites. Use it from any package's unit tests and from the integration harness.
Highlights
buildUser,buildRoom,buildMessage,textPart,markdownPart— quick fixtures.FakeClock— manually-advanced clock for deterministic tests.runMessageStoreContract(factory)— vitest suite everyMessageStorereference adapter passes (memory + Postgres + future variants).ServerHarness— boots a realChatServeragainst an in-process loopback transport. Lets unit tests exercise the full send pipeline without a network.
Roadmap
runStorageContract,runPubSubContract,runPresenceContract- Fake auth adapters, fake storage adapter
ClientHarness—ChatClientbound to aServerHarnessfor round-trip tests.
