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.
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
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-testing-vitest-integration-isolation-and-concurrency-workflow-guide.md | This 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-.text | A 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.text | A 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.text | A 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.text | A 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.text | Terminal 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
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - 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
