How to write unit tests that change an env var

Hi all, I’m working on some unit tests for a TypeScript Worker, and trying to confirm how I can modify an environment variable for just the one unit test. The
env
object is global so I’m not sure I should modify it?
Was this page helpful?