Currently we are using process.cwd() in a lot of plugins to resolve the current working directory in some of our stryker packages. This is undesirable in tests we sometimes want to mock the current working directory to "pretend" we're somewhere else. The only way to do this at the moment is to mock process.cwd() which can cause side effects. It would be better to define a projectRoot or base property on the Stryker config object that points to the current working directory. This way we can make our own Stryker config with a projectRoot or base that points somewhere else without harming process.cwd().
How about basePath? (same as Karma)
A list of components that should use this property:
Let's first finish #589
How about
basePath? (same as Karma)
Sounds good
OK, the way it should work:
basePath will always be set by stryker and defaults to . (current directory).
If basePath is set in stryker.conf.js: that basePath is used, relative to the stryker.conf.js file. For example: path.resolve(path.dirname('path/to/stryker.conf.js'), options.basePath)
This should also solve #245
I think this also solves #137
I'll get to work on this 馃憤
As discussed we won't do this right now.