Skip to content

Conversation

@petebacondarwin
Copy link
Contributor

@petebacondarwin petebacondarwin commented Dec 22, 2025

Summary

Adds a changelog entry announcing the new ctx.exports support in @cloudflare/vitest-pool-workers, corresponding to cloudflare/workers-sdk#11533.

The changelog entry explains that the Vitest integration now supports the ctx.exports API, with a note about the additionalExports configuration option for cases where exports cannot be automatically inferred (e.g., wildcard re-exports from virtual modules).

Updates since last revision

  • Added two code examples demonstrating how to access exports in tests:
    • Using createExecutionContext() from cloudflare:test
    • Importing exports directly from cloudflare:workers

Human review checklist

  • Verify the code examples are syntactically correct TypeScript
  • Verify the links to the vitest integration docs, ctx.exports API docs, and context-exports fixture are correct

Documentation checklist

  • Is there a changelog entry (guidelines)? This PR is the changelog entry.
  • The change adheres to the documentation style guide.
  • If a larger change - such as adding a new page- an issue has been opened in relation to any incorrect or out of date information that this PR fixes. N/A - this is a changelog entry only.
  • Files which have changed name or location have been allocated redirects. N/A - new file only.

Link to Devin run: https://app.devin.ai/sessions/bf9a620152464392aa5c621e03a562c0
Requested by: @petebacondarwin

Co-Authored-By: pbacondarwin@cloudflare.com <pete@bacondarwin.com>
@petebacondarwin petebacondarwin requested review from a team as code owners December 22, 2025 12:27
@devin-ai-integration
Copy link
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@github-actions
Copy link
Contributor

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/src/content/changelog/ @cloudflare/pm-changelogs, @cloudflare/pcx-technical-writing

Co-Authored-By: pbacondarwin@cloudflare.com <pete@bacondarwin.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant