Cloudflare

Building a better testing experience for Workflows, our durable execution engine for multi-step applications

Nov 4, 2025Olga Silva, Mia Malden
Building a better testing experience for Workflows, our durable execution engine for multi-step applications
SummaryAI, from the source post

Introduced new APIs (`introspectWorkflowInstance`, `introspectWorkflow`) within the `cloudflare:test` module for granular, isolated, and local testing of Cloudflare Workflows. These APIs leverage `vitest-pool-workers` and a combination of privileged local-only APIs and Remote Procedure Calls (RPC) to allow developers to mock step results, events, and control workflow execution, significantly improving the debugging and testing experience for complex orchestrations.

More from the Edge Computing with Cloudflare Workers trail