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
kol3x
kol3xOP2mo ago
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.
Want results from more Discord servers?
Add your server