Files
2026-05-27 23:47:53 +01:00

2.7 KiB

@suaveplan/network-testing - Network testing utilities: in-memory transport, fake WebSocket adapter, condition simulator, test peer factory, and event capture assertions

Documentation tree

  • event-capture — The event-capture module provides a testing utility that records every event emitted through an EventBusLike instan…
    • event-capture — The event-capture module provides a testing utility that records every event emitted through an EventBusLike instan…
  • test-peer — test-peer provides a fluent factory for generating synthetic peer identities during network tests. Instead of mocking…
    • test-peer — test-peer provides a fluent factory for generating synthetic peer identities during network tests. Instead of mocking…
  • condition-simulator — condition-simulator wraps any transport-like object and injects real-world network impairments: latency, jitter, pack…
    • condition-simulator — condition-simulator wraps any transport-like object and injects real-world network impairments: latency, jitter, pack…
  • fake-websocket — This module provides an in-memory WebSocket replacement for tests that need to verify transport-layer behaviour without…
    • fake-websocket — This module provides an in-memory WebSocket replacement for tests that need to verify transport-layer behaviour without…
  • memory-transport — memory-transport creates a pair of connected in-memory transport endpoints. It is the fastest way to write unit tests…
    • memory-transport — memory-transport creates a pair of connected in-memory transport endpoints. It is the fastest way to write unit tests…
  • types — This module declares the public type surface of @suaveplan/network-testing. All interfaces are pure types with no run…
    • common — This module declares the public type surface of @suaveplan/network-testing. All interfaces are pure types with no run…
  • error-codes — This module defines the canonical error taxonomy for the @suaveplan/network-testing package. All test-failure conditi…