Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Workers Isolation and concurrency

Explains the execution lifecycle of the Workers Vitest integration, including how workerd processes are managed, how storage isolation is applied per test file, and how module caches are reused or invalidated.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers Isolation and concurrency

Explains the execution lifecycle of the Workers Vitest integration, including how workerd processes are managed, how storage isolation is applied per test file, and how module caches are reused or invalidated.

When To Use

Use when configuring Vitest to run Cloudflare Workers tests, specifically when you need to manage test isolation, enable shared storage between test files, or understand module cache persistence.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-testing-vitest-integration-isolation-and-concurrency-workflow-guide.mdThis documentation explains the isolation model, module importing, and test execution behavior for the Cloudflare Workers Vitest integration.Questions about this documentation explains the isolation model, module importing, and test execution behavior for the Cloudflare Wor...
examples/workers-testing-vitest-integration-isolation-and-concurrency-cloudflare-.textA configuration file setting the compatibility date and main entry point for testing Workers isolation and concurrency with Vitest.Exact payloads, commands, or snippets shown in A configuration file setting the compatibility date and main entry point for testing Workers isolation and concurrenc...
examples/workers-testing-vitest-integration-isolation-and-concurrency-cloudflare--2.textA configuration snippet for testing Cloudflare Workers isolation and concurrency using Vitest, including compatibility date settings.Exact payloads, commands, or snippets shown in A configuration snippet for testing Cloudflare Workers isolation and concurrency using Vitest, including compatibilit...
examples/workers-testing-vitest-integration-isolation-and-concurrency-cloudflare--3.textA JavaScript code snippet demonstrating how to test worker isolation and concurrency using Vitest integration.Exact payloads, commands, or snippets shown in A JavaScript code snippet demonstrating how to test worker isolation and concurrency using Vitest integration.
examples/workers-testing-vitest-integration-isolation-and-concurrency-cloudflare--4.textA Vitest integration test demonstrating how Cloudflare Workers handle isolation and concurrency during testing.Exact payloads, commands, or snippets shown in A Vitest integration test demonstrating how Cloudflare Workers handle isolation and concurrency during testing.
examples/workers-testing-vitest-integration-isolation-and-concurrency-cloudflare--5.textTerminal output showing the results of a Vitest test suite verifying worker isolation and concurrency.Exact payloads, commands, or snippets shown in Terminal output showing the results of a Vitest test suite verifying worker isolation and concurrency.

What This Skill Covers

  • Review how the Workers Vitest integration runs your tests, how it isolates tests from each other, and how it imports modules.
  • Main sections: Run tests, Isolation model, Modules.

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/isolation-and-concurrency