I am using DI to inject config object into classes. In one end-to-end test I have scenario where I need to compare results of two requests - one with original config and another with modified config object.
I do not want to overwrite global config file in my end-to-end test, but I am not sure how to define and use it in the test if the config is used by many classes inside the Node.js application. I am currently using mocha/chai and supertest to send requests. Please advise me good test design strategy. Thank you!