I’m having trouble running the local worker test from the docs, exactly as in the docs
I’ve built the simple hello-world worker using
npm create cloudflare@latest
I’ve added vitest and the example test from:
On running the tests, the call to
await unstable_dev("src/index.ts", ...) hangs, and the terminal running
npm run dev has a bunch of errors, the first being:
Failed to register worker in local service registry TypeError: fetch failed
I can run the worker no problem from the browser at localhost:8787, but not the tests.
Any advice much appreicated.