πŸ“¦ 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 prerelease, intended for testing and feedback. Your insights will help shape MockChain into a reliable tool for deterministic asynchronous testing.


“Control the unpredictable — one promise at a time.”
 @fizzwiz ✨


Comments

Popular posts from this blog

πŸ”‘ Why MockChain Is a Chain

🏁 The autostart Flag

⚠️ Async Functions Are Not Mockable