Although I understand that it's not ideal, I am faced with a specific directory structure that cannot be changed:
[projectRootDir]
[src]
[tests]
[otherDirs]
[configuration]
package.json
mocha.opts
other files...
Is there a way to run an npm command without changing to the [configuration] directory?
The package.json file includes patterns for test files configured like this:
test/**/*Test*.spec
Therefore, I need to specify in the package.json file that the root directory is located in [projectRootDir].
It would be preferable if node_modules were inside [configuration], but creating a symbolic link may suffice if the previous step can be achieved without it.