Change8

@cloudflare/vitest-pool-workers@0.15.0

📦 cloudflare-workersView on GitHub →
2 features🔧 1 symbols

Summary

This release introduces new testing utilities, `reset()` and `abortAllDurableObjects()`, to `cloudflare:test` for better state management in tests. It also includes dependency updates for wrangler and miniflare.

Migration Steps

  1. If using `cloudflare:test` for testing Durable Objects, review usage of `reset()` and `abortAllDurableObjects()` for state management between tests.

✨ New Features

  • Added `reset()` helper to `cloudflare:test` which deletes all data from attached bindings and resets all Durable Object instances.
  • Added `abortAllDurableObjects()` helper to `cloudflare:test` which resets all Durable Object instances without deleting persisted data.

Affected Symbols