NOTE: This function is also published on window for easy access.
NOTE: This function is declared ONLY WHEN running tests with jasmine or mocha
This function registers a module configuration code. It collects the configuration information which will b