I have a Javascript application.
I am writing tests for it in JEST.
I have to access the global variables set in some of the JS files into the unit tests.
I have searched on the google for quite a few hours, but couldn't find any leads.
It would be very helpful, if you share some information about it.