Test Automation
Testing Cloudflare Workers Locally with Miniflare and Wrangler
Cloudflare Workers run in V8 isolates, not Node.js. That difference means standard testing approaches break: node:fs, node:http, and most Node.js built-ins are unavailable. Miniflare solves this by implementing the Workers runtime APIs locally — KV, R2, D1, Durable Objects, Queues — so your tests run in an environment