@cloudflare/vitest-pool-workers@0.13.5
📦 cloudflare-workersView on GitHub →
✨ 2 features🐛 3 fixes🔧 8 symbols
Summary
This patch release fixes several issues related to Durable Object communication, module loading behavior, and test stability. It also introduces new testing utilities for managing secrets.
Migration Steps
- If you rely on `ctx.waitUntil()` promises never resolving in tests, be aware that they will now time out after 30 seconds and be abandoned with a warning.
✨ New Features
- Added `adminSecretsStore()` to `cloudflare:test` for seeding secrets in tests, allowing create, update, and delete operations on secret bindings.
- Added a 30-second timeout to `waitUntil` promise draining in tests to prevent indefinite hanging if promises never resolve.
🐛 Bug Fixes
- `runInDurableObject` now correctly returns redirect responses (3xx) from Durable Object callbacks instead of throwing "Expected callback for X" errors.
- Fixed an issue where dynamic `import()` inside entrypoint and Durable Object handlers would hang by routing all `invoke()` calls through the runner DO's I/O context via the `onModuleRunner` hook.
- Module fallback extension probing (adding .js, .mjs, .cjs, .json suffixes) is now only applied for `require()`, not for ESM `import` statements, aligning with Node.js specification.