Testing workflows
The platform ships stand-ins so a workflow’s own tests run without Cloudflare, Composio or a model. Import them from xenise-platform/testing:
memoryEngine: an in-memory Workflows engine. It does not simulate Cloudflare’s replay or retry.sqliteSql: the client’s D1 database as in-memory SQLite (node:sqlite, Node 22 or newer).fakeExecutor: answerstools.callfrom handlers you give it, keyed by tool.fakeModel: answers a workflow’s model and agent steps.memoryWaker(wakes a run when a question is answered) andthroughOutbound(afetchthat goes through the outbound Worker’s rules).
xenise-workflows uses these for its own tests. xenise check also runs every example in a workflow’s explanation through its code (see Writing a workflow).
Something unclear, or missing? Email us at hello@xenise.com