Prompt Buddy logoPrompt Buddy

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.

Import to Prompt Buddy

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

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-testing-vitest-integration-workflow-guide.mdA 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

  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