Skip to content

[Workers] Document cloudflare.config.ts support in the Vitest integration - #34559

Draft
edmundhung wants to merge 3 commits into
productionfrom
edmundhung/vitest-cloudflare-config
Draft

edmundhung wants to merge 3 commits into
productionfrom
edmundhung/vitest-cloudflare-config

Conversation

@edmundhung

@edmundhung edmundhung commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Summary

Documents the new config option in @cloudflare/vitest-plugin, which loads a Worker's configuration from cloudflare.config.ts (cloudflare/workers-sdk#16424).

  • Vitest integration > Configuration: an example using config: true, and a config entry under CloudflareTestOptions. It covers the accepted values, that it can't be combined with wrangler or miniflare, the mode, where secrets and Hyperdrive connection strings come from, and cf credentials for remote bindings. The main, miniflare, and wrangler entries now mention config.
  • cloudflare.config.ts > Select a mode: a row for Vitest, which defaults to the test mode.

Merge after the @cloudflare/vitest-plugin release that includes cloudflare/workers-sdk#16424 is published.

Documentation checklist

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://edmundhung-vitest-cloudflare-config.previews.developers.cloudflare.com (commit 7111ad5)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://bec417bb.previews.developers.cloudflare.com 7111ad5 2026-10-23T16:50:57.976Z Visit the dashboard ↗
  • Build: Failed ❌

View logs ↗
dd7a211 2026-10-23T15:27:49.912Z View logs ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://60b2ceda.previews.developers.cloudflare.com 50f9197 2026-10-23T14:01:39.866Z Visit the dashboard ↗

@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:workers Related to Workers product size/s

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant