π¦ 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..rootand.parentproperties for navigating the chain and testing midstream transformations.- Factory methods for fetch requests, WebSocket messages, and generic events.
π§ͺ This is a prerelease, intended for testing and feedback. Your insights will help shape
MockChaininto a reliable tool for deterministic asynchronous testing.
“Control the unpredictable — one promise at a time.”
— @fizzwiz ✨
Comments
Post a Comment