๐ฆ v0.0.0-dev.1 — Mockable Promises with MockChain
๐ฆ v0.0.0-dev.1 — Mockable Promises with MockChain We’re excited to announce the first prerelease of @fizzwiz/mockchain : v0.0.0-dev.1 — a library dedicated to controlling and testing asynchronous operations in distributed systems. This release introduces the core abstraction: MockChain . Each MockChain instance is a mockable Promise that lets you manually resolve or reject asynchronous flows, inspect chain nodes, and simulate network or event-driven operations deterministically. Key highlights include: Full support for controlling any point in a promise chain , not just the root. .mock() and .fail() methods for manual resolution and rejection. .root and .parent properties for navigating the chain and testing midstream transformations. Factory methods for fetch requests , WebSocket messages , and generic events . ๐งช This is a pr...