I have a module lets call it root. Within the psd1 file i have a number of nested modules defined. I am trying to perform my unit tests using team city. I am copying all of the required modules to a local directory where I perform the tests. The problem is that the nested modules are not found when importing the root module as the local directory is not in PSModulePath. This is really by design, so if any one can tell me how to mock a module in the tested module node of the manifest to point at a relative location to the root module that would be great.
Hope this makes sense to some one.