You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We recently started using the Message.ack() and Message.retry() methods, to explicitly acknowledge processed messages, but when running our local Miniflare tests, we noticed these errors:
TypeError: n.ack is not a function
at Object.Sw [as queue] (src/queues.ts:134:15)
at async Promise.all (index 0)
at ServiceWorkerGlobalScope.[kDispatchQueue] (node_modules/@miniflare/core/src/standards/event.ts:460:13)
at Object.queueEventDispatcher [as dispatcher] (node_modules/@miniflare/core/src/index.ts:421:7)
at WorkerQueue.#flush (node_modules/@miniflare/queues/src/broker.ts:217:7)
We thought we were using [email protected] (because it's in our devDependencies), but upon closer inspection it turned out we're also using [email protected] in there, and so it looks like we're actually still working with Miniflare V2 in Jest. We really want to upgrade to Miniflare V3, but it's unclear how to set this up and migrate our existing (and extensive) Jest test suite.
What's the replacement for jest-environment-miniflare that works with Miniflare V3 / workerd setups?
This page also didn't help much. Could you provide any guidance?
The text was updated successfully, but these errors were encountered:
We recently started using the
Message.ack()
andMessage.retry()
methods, to explicitly acknowledge processed messages, but when running our local Miniflare tests, we noticed these errors:We thought we were using
[email protected]
(because it's in our devDependencies), but upon closer inspection it turned out we're also using[email protected]
in there, and so it looks like we're actually still working with Miniflare V2 in Jest. We really want to upgrade to Miniflare V3, but it's unclear how to set this up and migrate our existing (and extensive) Jest test suite.What's the replacement for
jest-environment-miniflare
that works with Miniflare V3 / workerd setups?This page also didn't help much. Could you provide any guidance?
The text was updated successfully, but these errors were encountered: