How to add a global variable that can be accessed everywhere

Hello, I have a Factory class that needs to be built asynchronously (await Factory.build()) once at the start of testing (bootstrap) Is there a way I can add it to the global variables from within the bootstrap function?