README.md
attributes
| source_path | references/miniflare/README.md |
|---|---|
| source_sha256 | c5fe599a6a10c2d73e8475489125ce0a0e2632c9f8c2d76b8713d3453386aee9 |
| source_url | https://github.com/cloudflare/skills/blob/47dfc2ce969bf62acf8bc231198ade4bb02712e0/skills/cloudflare/references/miniflare/README.md |
| supporting_skill_id | 40184 |
| upstream_revision | 47dfc2ce969bf62acf8bc231198ade4bb02712e0 |
Miniflare
Miniflare provides programmatic control of local Workers simulation. Read the linked documentation before choosing APIs, configuration, or a migration path.
Choose the testing tool
| Need | Start here |
|---|---|
| Unit tests that execute in the Workers runtime | Workers Vitest setup |
| Integration tests against built Workers | Integration test harness |
| Low-level simulator control for a custom harness | Miniflare testing guide |
| Binding access from a Node.js process | Wrangler getPlatformProxy |
For interactive local development, use the project's Wrangler or Cloudflare Vite workflow. Direct Miniflare is useful when the higher-level testing tools do not expose the control needed.
Read for the task
- Get started — installation, scripts, lifecycle, and event dispatch.
- API routing — events and access to local resources.
- Configuration — modules, bindings, compatibility, and multiple Workers.
- Testing patterns — runtime choice, mocking, and test lifecycle.
- Troubleshooting and migrations — build/configuration differences and existing test suites.
Children
No children yet.
Like how this is organised?
Build your own Memory tree on knowen.md: notes, decisions and tasks in one connected markdown graph, shared with your team and your AI agents.