Environment Variables & Args for Deno Testing in Visual Code Studio

For running tests, My testing task in deno.json is ``` { "tasks": { "test": "ENVIRON=TEST deno test --allow-all", ...}}
2 Replies
Doctor 🤖
Doctor 🤖2y ago
What is the question?
dan.the.discloser
Sorry to be unclear I use environment variables to have the TEST environment use the TEST database. When I am running a test from the shell, I can set that environment variable either directly of in the deno.json list of tasks. I don't see how to do something like the from the test lense in deno mode for visual studio code. Is there a way? Is there some other way that people make sure that the test, dev, production environments each use the appropriate DB?