Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Workers Migrate from unstable_dev

A guide for transitioning from the unstable_dev API to the @cloudflare/vitest-pool-workers integration, covering worker referencing, configuration imports, and module format requirements.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers Migrate from unstable_dev

A guide for transitioning from the unstable_dev API to the @cloudflare/vitest-pool-workers integration, covering worker referencing, configuration imports, and module format requirements.

When To Use

Use when migrating integration tests from the legacy unstabledev API to the modern Workers Vitest integration to ensure correct worker referencing and configuration setup.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-testing-vitest-integration-migrate-from-unstable-dev-workflow-guide.mdA migration guide detailing how to transition from the unstable_dev API to the @cloudflare/vitest-pool-workers package for integration testing.Questions about a migration guide detailing how to transition from the unstabledev API to the @cloudflare/vitest-pool-workers package...
examples/workers-testing-vitest-integration-migrate-from-unstable-dev-cloudflare-.textA Vitest integration test example demonstrating how to replace the unstable_dev function with standard testing patterns in Cloudflare Workers.Exact payloads, commands, or snippets shown in A Vitest integration test example demonstrating how to replace the unstabledev function with standard testing pattern...
examples/workers-testing-vitest-integration-migrate-from-unstable-dev-cloudflare--2.textA text example demonstrating the code changes required to migrate from the unstable_dev environment to the standard Vitest integration in Cloudflare Workers.Exact payloads, commands, or snippets shown in A text example demonstrating the code changes required to migrate from the unstabledev environment to the standard Vi...
examples/workers-testing-vitest-integration-migrate-from-unstable-dev-cloudflare--3.textA code snippet demonstrating the syntax transition from the unstable_dev function to the new Vitest integration for Cloudflare Workers.Exact payloads, commands, or snippets shown in A code snippet demonstrating the syntax transition from the unstabledev function to the new Vitest integration for Cl...
examples/workers-testing-vitest-integration-migrate-from-unstable-dev-cloudflare--4.textA configuration example demonstrating how to update the vitest-pool-workers plugin to use a specific wrangler config path during the migration from unstable_dev.Exact payloads, commands, or snippets shown in A configuration example demonstrating how to update the vitest-pool-workers plugin to use a specific wrangler config...
examples/workers-testing-vitest-integration-migrate-from-unstable-dev-cloudflare--5.textA code example demonstrating the transition from using the unstable_dev import to the updated Vitest integration for Cloudflare Workers.Exact payloads, commands, or snippets shown in A code example demonstrating the transition from using the unstabledev import to the updated Vitest integration for C...

What This Skill Covers

  • The unstable\dev API has been a recommended approach to run integration tests. The @cloudflare/vitest-pool-workers package integrates directly with Vitest fo...
  • Main sections: Reference a Worker for integration testing, Stop a Worker, Import Wrangler configuration, Test service Workers, Define types.

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/vitest-integration/migration-guides/migrate-from-unstable-dev