2.7 KiB
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-capturemodule provides a testing utility that records every event emitted through anEventBusLikeinstan…- event-capture — The
event-capturemodule provides a testing utility that records every event emitted through anEventBusLikeinstan…
- event-capture — The
- test-peer —
test-peerprovides a fluent factory for generating synthetic peer identities during network tests. Instead of mocking…- test-peer —
test-peerprovides a fluent factory for generating synthetic peer identities during network tests. Instead of mocking…
- test-peer —
- condition-simulator —
condition-simulatorwraps any transport-like object and injects real-world network impairments: latency, jitter, pack…- condition-simulator —
condition-simulatorwraps any transport-like object and injects real-world network impairments: latency, jitter, pack…
- condition-simulator —
- 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-transportcreates a pair of connected in-memory transport endpoints. It is the fastest way to write unit tests…- memory-transport —
memory-transportcreates a pair of connected in-memory transport endpoints. It is the fastest way to write unit tests…
- memory-transport —
- 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…
- common — This module declares the public type surface of
- error-codes — This module defines the canonical error taxonomy for the
@suaveplan/network-testingpackage. All test-failure conditi…