grunt-mocha-test icon indicating copy to clipboard operation
grunt-mocha-test copied to clipboard

option to pass config file

Open lhtdesignde opened this issue 5 years ago • 1 comments

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']
        },

lhtdesignde avatar Sep 16 '19 12:09 lhtdesignde

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)

pghalliday avatar Nov 07 '19 15:11 pghalliday