Thursday 22 August 2019

Global variables for testing in node?

I was hoping someone had a solution for what I am trying to do. I would like to set a global variable (right now I have a config.js file I use) for testing purposes to turn and and shut off access to things like SQL throughout the test in order to test different things like errors. Maybe even to setup a different connection to a test database.Is that possible? How would you do it?

Submitted August 23, 2019 at 06:11AM by gemurdock

No comments:

Post a Comment