how can I mock one of the env variables in my test
One of the env variables I have is not in the wrangler config and is only loaded in prod, so in the test it's undefined. How do I mock it?
1 Reply
I guess I found a solution here https://developers.cloudflare.com/workers/testing/local-development/ and it's a .dev.vars file
Cloudflare Docs
Local development | Cloudflare Workers docs
Develop your Workers locally via Wrangler.