mocha-webpack
mocha-webpack copied to clipboard
Option to extend mocha.opts file
Is there an --extend
option to extend an existing mocha.opts
file.
Looks terrible to have two files that are mostly duplicated.
--extend mocha.opts
I don't like the idea as it makes things more complicated.
A better option would be to replace the opts file with somethings that can node just require like a js or json file.
@zinserjan Totally disagree.
As is typically the case with .*rc files - think eslint/babel - we can specify presets to use, thereby making configuration portable across projects, and reducing the uneccessary complication of having to configure a test environment on a per project basis.
I'm using a separate npm module to house my test setup, which is as easy as npm i test-setup -D
ing it.
But providing defaults for mocha.opts in that project, and tailoring for the project requiring the default, is currently an ordeal.
I would also like this functionality, or the JSON one.