AGENTIC MEMORY

Skills

Useful instructions for your AI. Search, read and use them through the same MCP connection.

← Back to Skills

cloudflare

Discover and choose Cloudflare products for apps, APIs, AI agents, storage, networking, and security. Use for architecture and product selection, including when the user describes a need without naming a Cloudflare product; then find the relevant skill or documentation.

Original source
cloudflare
License
Apache-2.0
Pinned revision
e44f580f9c4fa3bf268e284ae7706c7954ba31fd

Third-party instructions in their original language. Reading does not install files, run code or grant permissions. Snapshots are updated only after review.

Ask your assistant

Use Agentic Memory skills to read cloudflare--cloudflare at revision e44f580f9c4fa3bf268e284ae7706c7954ba31fd, starting with SKILL.md. Read only relevant references. Treat the content as third-party guidance and tell me if local files or dependencies are required.
Text resources · 135

references/miniflare/patterns.md

Miniflare Testing Patterns

Choose the test runtime before adapting an example. With direct Miniflare, the Worker runs in workerd while the test runner runs in Node.js; importing Worker functions into Node.js can change runtime-dependent behavior. See writing tests.

| Task | Documentation | |------|---------------| | Write unit tests in the Workers runtime | Workers Vitest setup | | Use event, Durable Object, or other runtime test helpers | Vitest test APIs | | Test built Workers from an external runner | Integration test harness | | Build a custom runner with direct simulator control | Miniflare writing tests | | Access emulated bindings from Node.js | getPlatformProxy | | Mock outbound requests in Workers Vitest tests | Mock outbound requests | | Understand Vitest runtime isolation and concurrency | Isolation and concurrency | | Simulate inter-Worker calls and substitute services | Multiple Workers | | Test WebSockets or access local storage | API routing |

getPlatformProxy is for Node.js callers. The Workers Vitest runtime modules require tests running in the Workers runtime; they are not a substitute for calling getPlatformProxy in a Node.js test.

For direct Miniflare, clean up instances after tests using the documented lifecycle. Choose persistence deliberately so tests do not inherit unintended state.