Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Testing Wrangler's unstable_startWorker()

An experimental API for writing integration tests by exposing Wrangler dev server internals to allow custom execution configurations and automatic loading of Wrangler configuration files.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Testing Wrangler's unstable_startWorker()

An experimental API for writing integration tests by exposing Wrangler dev server internals to allow custom execution configurations and automatic loading of Wrangler configuration files.

When To Use

Use when you need to write integration tests that require custom Wrangler server configurations or when you want to avoid using the standard Vitest integration.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-testing-unstable-startworker-wrangler-s-workflow-guide.mdA guide explaining how to use the experimental unstable_startWorker() API in Wrangler for testing Cloudflare Workers.Questions about a guide explaining how to use the experimental unstablestartWorker() API in Wrangler for testing Cloudflare Workers.
examples/workers-testing-unstable-startworker-wrangler-s-cloudflare-workers-wrang.textA JavaScript test script demonstrating how to use the unstable_startWorker() method in Wrangler to test a Cloudflare Worker.Exact payloads, commands, or snippets shown in A JavaScript test script demonstrating how to use the unstablestartWorker() method in Wrangler to test a Cloudflare W...

What This Skill Covers

  • Wrangler's unstable\startWorker()

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://developers.cloudflare.com/workers/testing/unstable_startworker/index.md