grunt-mocha-test
grunt-mocha-test copied to clipboard
option to pass config file
Hi, mocha 6 supports config files. In my project you can run mocha with and without grunt so at the moment I have 2 sources of truth for the configuration. Would it be possible to link the grunt options a config file? like:
options: {
config: ['./.mocharc.json']
},
I must admit I rarely use grunt anymore. So maintenance of this plug-in is not high on my list. If you have a pull request I can take a look at it (remember to add tests).
However, if the options in the json file have the same names then it would be quite trivial to require the json, assign it to a variable and use that as the options config in the gruntfile? (life rarely works out so easy though)