Testing Service Bindings #719
-
Hello, I am creating a worker that will redirect to another worker if certain conditions are met. I am trying to write a test for it. My wrangler.toml (ServiceA) looks like this
In my test folder I created a `name = "testService" [dev] I am then using this function to start up the testService worker
All my tests then call startWebAppWorker in the Vitest Config export default defineConfig({ For some reason it doesn't seem like vitest is starting up testService or miniflare is unable to find it. This is the error I get . Can someone tell me why this is happening. Thanks
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Never mind, I figured it out. The wrangler.toml needs to have [miniflare.mounts] |
Beta Was this translation helpful? Give feedback.
Never mind, I figured it out.
The wrangler.toml needs to have
[miniflare.mounts]
testService = "./webApp"