feat: add realistic sandbox plugin tests - #3084
Conversation
🦋 Changeset detectedLatest commit: d6420e6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 6 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
🚀 Deploying Preview to Cloudflare 🚀Preview URL: https://codex-plugin-test-host.try.emdashcms.com, https://codex-plugin-test-host-emdash-playground.emdash-cms.workers.dev (commit d6420e6)This URL reflects your latest Preview deploymentPreview Deployments by commit
|
Scope checkThis PR changes 994 lines across 47 files. Large PRs are harder to review and more likely to be closed without review. If this scope is intentional, no action needed. A maintainer will review it. If not, please consider splitting this into smaller PRs. See CONTRIBUTING.md for contribution guidelines. |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
docs | d6420e6 | Sep 12 2026, 11:40 AM |
Overlapping PRsThis PR modifies files that are also changed by other open PRs:
This may cause merge conflicts or duplicated work. A maintainer will coordinate. |
What does this PR do?
Adds a realistic test host for sandboxed plugin authors, stacked on #3081.
@emdash-cms/plugin-test, which builds the plugin and configures D1, Worker Loader, andPluginBridgethrough@cloudflare/vitest-plugin.emdash-plugin initso generated projects include the Vitest configuration, a real sandbox-host test, and the pnpm build-script policy required by workerd.@cloudflare/vitest-pool-workersdependency across the repository with@cloudflare/vitest-plugin1.x.Discussion: #1590
Type of change
Checklist
pnpm typecheckpassespnpm lintpassespnpm testpasses (or targeted tests for my change)pnpm formathas been runmessages.pochanges except in translation PRs — a workflow extracts catalogs on merge tomain.AI-generated code disclosure
Screenshots / test output
Not applicable: no UI change.
Verified locally:
publint, changeset status, andgit diff --check.