Workers SDK Issue Reports

← Back to Dashboard

#10408 Cloudflare containers don't work with vitest-pool-workers

Recommendation:KEEP OPEN
Difficulty:n/a
Reasoning:

Valid feature gap. PR #10162 prevents crashes but doesn't enable testing. WIP PR #10132 exists but stalled since Dec 2025.

Suggested Action:

Keep open as tracking issue for vitest-pool-workers container support; link to PR #10132

Analysis Report

Issue Review: cloudflare/workers-sdk#10408

Summary

Cloudflare containers don't work with vitest-pool-workers - users cannot test container interactions in vitest.

Findings

  • Created: 2025-08-19
  • Updated: 2026-01-04
  • Version: Wrangler 4.22.0 -> 4.60.0 (current)
  • Component: vitest-pool-workers, containers
  • Labels: bug, containers
  • Comments: 1 (user asking for update)

Key Evidence

  • Partial fix already merged (PR #10162, 2025-08-05): Emily Shen's fix "stop vitest pool workers breaking when containers are present" prevents vitest from crashing when containers are configured. However, the changelog explicitly states: "Testing interactions with containers is still currently unsupported."

  • WIP PR exists (PR #10132): There is an open WIP PR titled "[wip] vitest with containers" created 2025-07-30, last updated 2025-12-03. This would actually enable full container testing support.

  • Issue opened after partial fix: The issue was created on 2025-08-19, two weeks after PR #10162 merged. The reporter's request is for actual container testing support, not just preventing crashes.

  • Related work: PR #9819 added containers support for vite-plugin (not vitest-pool-workers), which is a separate concern.

  • Maintainer acknowledged: Emily Shen directed the reporter to open this issue, indicating the team is aware of the limitation.

Recommendation

Status: KEEP OPEN

Reasoning: This is a valid feature gap with active development. PR #10132 (WIP) is specifically addressing this issue but has been in WIP state since July 2025. The partial fix in PR #10162 only prevents crashes but doesn't enable actual container testing.

Action: Keep open as the tracking issue for vitest-pool-workers container support. Link to PR #10132 for visibility. The issue serves as a useful reference for users encountering this limitation.

Suggested Comment

This is still a valid open issue. PR #10162 (merged Aug 2025) prevents vitest-pool-workers from crashing when containers are present, but testing interactions with containers remains unsupported.

There is a WIP PR (#10132) that would add full container testing support. This issue should remain open to track that work.

Notes & Feedback (0)

No notes yet.

Add Note