it(`resolves publicly available module - ${moduleName}${methods&&methods.length ? " and its publicly available methods: "+methods.join(", ") : ""}`,()=>{
// HACK: If we try to require the entry point directly, the below code will fail as mocha requires all test files before starting the tests.
// When the files are required, $injector.register adds each dependency to $injector's cache.
// For example $injector.register("errors", Errors) will add the errors module with its resolver (Errors) to $injector's cache.
// Calling $injector.require("errors", <path to errors file>), that's executed in our bootstrap, will fail, as the module errors is already in the cache.
// In order to workaround this problem, start new process and assert there. This way all files will not be required in it and $injector.require(...) will work correctly.