mantoni / mochify.js

☕️ TDD with Browserify, Mocha, Headless Chrome and WebDriver
MIT License
346 stars 57 forks source link

Load config with cosmiconfig #239

Closed mantoni closed 3 years ago

mantoni commented 3 years ago

This change allows to configure mochify in package.json and various config file formats.

Users can specify a file with the --config option. If a config file is specified and a default configuration is also present, the configs are merged.

Command line options override the config file options. A custom config file overrides settings from the default config.

mantoni commented 3 years ago

Thanks for the review. I have refactored the whole thing to be more straight forward, use the cosmiconfig defaults and implement merging of the default configs, specified configs and command line options.