cloudflare · Cloudflare Workers Docs
Workers Vitest integration
Configures and runs unit and integration tests for Cloudflare Workers and Pages Functions using the Vitest framework and a custom runtime pool.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Workers Vitest integration
Configures and runs unit and integration tests for Cloudflare Workers and Pages Functions using the Vitest framework and a custom runtime pool.
When To Use
Use when you need to set up a local testing environment that executes Vitest tests within the actual Cloudflare Workers runtime to validate API bindings and runtime behavior.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-testing-vitest-integration-workflow-guide.md | A guide explaining how to integrate Vitest for testing Cloudflare Workers and Pages Functions projects. | Questions about a guide explaining how to integrate Vitest for testing Cloudflare Workers and Pages Functions projects. |
What This Skill Covers
- For most users, Cloudflare recommends using the Workers Vitest integration for testing Workers and Pages Functions projects. Vitest ↗ is a popular JavaScript...
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
