workers-help
pages-help
general-help
durable-objects
workers-and-pages-discussions
pages-discussions
wrangler
coding-help
kv
š¦rust-on-workers
miniflare
stream
general-discussions
functions
zaraz
ā”instant-logs
email-routing
r2
pubsub-beta
analytics-engine
d1-database
queues
workers-for-platforms
workerd-runtime
web3
š¤turnstile
radar
web-research
logs-engine
cloudflare-go
terraform-provider-cloudflare
workers-ai
browser-rendering-api
logs-and-analytics
next-on-pages
cloudflare-ai
build-caching-beta
hyperdrive
vectorize
ai-gateway
python-workers-beta
vitest-integration-beta
workers-observability
workflows-beta
vite-plugin
Hi folks I m trying to run a jest test
Continuing into my testing for workers
import { BetaDatabase } from "@miniflare/d1";
fails with the error Module '"@miniflare/d1"' has no exported member 'BetaDatabase'
- anyone seen this before?MrBBot 4470 I m writing tests `vitest
vitest-environment-miniflare
) for a worker that binds another worker. The other worker has a DO, and I've bound that DO to the original worker as well. I want to seed an instance of the DO for tests, but I'm running into trouble because constructing that DO requires the other worker's env
(to fetch another bound worker). Is there a way to get the other env
, or a different pattern I should be using to seed the DO?I m trying to test some worker code
jest.config.js
to test D1 use?Might have asked this before but any
The miniflare vitest docs have this note
globalsetupMiniflareIsolatedStorage
, but if you make it automatic later, it sounds like all of my tests will break. I'm hoping that there will be a way to control the isolation rather than have it always be on....I m using miniflare with vitest and
if you want it to work for now you can
patches/@[email protected]
```diff
diff --git a/dist/src/index.js b/dist/src/index.js
index cee85bc1677d6d7fd1f0027cda47d16a07b43116..1118bb81d4b66021d7fe76cb446f7a875aacd03c 100644...Does it work fine when deployed only an
hey I m using vitest for testing and
Hmmmmmmmm I have tried upgrading to 2 11
Is there a way to easily change the log
Anyone have luck with tsup esbuild for
Hey š For now you ll need to define
ExecutionContext
class:
```js
class ExecutionContext {
promises = [];
waitUntil(promise) { this.promises.push(promise); }...Udici bug